page attributes in page controllers

Permalink 1 user found helpful
I need to access a page attribute from the controller but having no joy. I think this should work:

$this->getCollectionObject()->GetCollectionAttributeValue('handle');

But it doesn't any pointers?


Thanks
Joe

jawbonelid
 
c5studio replied on at Permalink Reply
c5studio
The global variable $c always holds the current page object, so try this:

global $c;
$c->getCollectionAttributeValue('handle');