Create template/layout from UDT.
Posted: Tue Mar 14, 2023 5:28 pm
Hello,
I try to convert 1.x to 2.x block content management with UDT :
OLD in cmsms 1.x :
$gcbOps =cmsms()->GetGlobalContentOperations();
$mybloc = $gcbOps->LoadHtmlBlobByName($blocname);
$mybloc = $mybloc + "bla bla";
$gcbOps->UpdateHtmlBlob($mybloc)
NEW in cmsms 2.x :
How to create a Core:Generic template in PHP from UDT, and update the content...
PS : i just know loading an existing content with : $mybloc = $smarty->fetch('cms_template:my_block');
Thanks a lot.
I try to convert 1.x to 2.x block content management with UDT :
OLD in cmsms 1.x :
$gcbOps =cmsms()->GetGlobalContentOperations();
$mybloc = $gcbOps->LoadHtmlBlobByName($blocname);
$mybloc = $mybloc + "bla bla";
$gcbOps->UpdateHtmlBlob($mybloc)
NEW in cmsms 2.x :
How to create a Core:Generic template in PHP from UDT, and update the content...
PS : i just know loading an existing content with : $mybloc = $smarty->fetch('cms_template:my_block');
Thanks a lot.