Page 1 of 1

Get Contents of Page in UDT [SOLVED]

Posted: Thu Dec 02, 2010 9:11 am
by emorling
How do I get the contents of any page in an UDT? Thx

Re: Get Contents of Page in UDT

Posted: Fri Dec 03, 2010 5:22 am
by Wishbone

Code: Select all

global $gCms;
$cntops = $gCms->getContentOperations();
$content = $cntops->LoadContentFromAlias('your-page-alias-here');
echo($content->Show());

Re: Get Contents of Page in UDT

Posted: Fri Dec 03, 2010 7:06 am
by emorling
Thanks!

Re: Get Contents of Page in UDT [SOLVED]

Posted: Fri Dec 03, 2010 2:54 pm
by Wishbone
Interestingly, this doesn't seem to work for default content... The property value 'content_en' seems to not exist on any default page... Not sure why.