Create template/layout from UDT.

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
funkyhead
New Member
New Member
Posts: 5
Joined: Mon Oct 30, 2017 2:50 pm

Create template/layout from UDT.

Post by funkyhead »

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.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Create template/layout from UDT.

Post by velden »

I don't know why you want to do this but it's more complex than the old GCBs.

You could have a look at modules\DesignManager\action.admin_edit_template.php
It may give you some hints as where to start with your code.
jce76350
Beta Tester
Beta Tester
Posts: 2032
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

Re: Create template/layout from UDT.

Post by jce76350 »

@ funkyhead : mutipost see Forum FR
Jean-Claude Etiemble
Post Reply

Return to “Layout and Design (CSS & HTML)”