Get Contents of Page in UDT [SOLVED]
Get Contents of Page in UDT [SOLVED]
How do I get the contents of any page in an UDT? Thx
Last edited by emorling on Fri Dec 03, 2010 7:07 am, edited 1 time in total.
Re: Get Contents of Page in UDT
Code: Select all
global $gCms;
$cntops = $gCms->getContentOperations();
$content = $cntops->LoadContentFromAlias('your-page-alias-here');
echo($content->Show());
Last edited by Wishbone on Fri Dec 03, 2010 5:29 am, edited 1 time in total.
Re: Get Contents of Page in UDT
Thanks!
Re: Get Contents of Page in UDT [SOLVED]
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.