Get page description

Permalink 3 users found helpful
Hi all,

I have a custom page list, but it's not showing the description of the pages. How can I display the description?

Thanks!

Tom

View Replies: View Best Answer
beebs93 replied on at Permalink Best Answer Reply
beebs93
For the text that you enter in its "Description" text area attribute:
$c = Page::getCurrentPage();
$strDesc = $c->getCollectionDescription();


If you're after the content that gets indexed for C5's search block:
$c = Page::getCurrentPage();
$strContent = $c->getPageIndexContent();
Tommiiee replied on at Permalink Reply
Thanks :)