[solved]How to display content block from UDT?
Posted: Tue Mar 04, 2008 6:59 pm
Hello,
I'm using CMSMS v. 1.2.3
I would like to create a UDT which will display the content of e. g. a {content block="test"} placed in the template "Test Template".
I created something like this (the default page is the target, containing {content block="test"):
It work fine, but the problem is, it displays only {content}. I would like to display a {content block="test"} or all content blocks.
Thank you in advance!
I'm using CMSMS v. 1.2.3

I would like to create a UDT which will display the content of e. g. a {content block="test"} placed in the template "Test Template".
I created something like this (the default page is the target, containing {content block="test"):
Code: Select all
global $gCms;
$contops =& $gCms->GetContentOperations();
$default =& $contops->GetDefaultContent();
echo $default." | ";
$conts =& $contops->LoadContentFromId($default);
return $conts->Show();
Thank you in advance!