Templates not working after upgrading to 2.2.16

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
tractorboy
Forum Members
Forum Members
Posts: 21
Joined: Thu Mar 23, 2006 11:06 am

Templates not working after upgrading to 2.2.16

Post by tractorboy »

Hi,

I’ve upgraded from 2.2.7 to 2.2.16 and now have problems with the templates. The content is shown on the client side but not shown in the editor. The template has 2 blocks of content and used to use:
<tr>
<td class="first">{content }</td>
<td class="spacer">&nbsp;</td>
<td class="center">{content block="main"}</td>
</tr>
Following the example template at https://docs.cmsmadesimple.org/layout/d ... e-template I tried adding this at the top of the template:
{strip}
{* Adds page specific metadata to the page *}
{process_pagedata}
{* Assign the main Content block to a string *}
{content assign='leftmenu'}
{* Create a second content block! *}
{content block='main' assign='maincontent' label='main'}
{/strip}
And this to show the content:
<tr>
<td class="first"> {$leftmenu}</td>
<td class="spacer">&nbsp;</td>
<td class="center">{$maincontent}</td>
</tr>
Now the content is not shown on the client side or in the editor. Any suggestions on how to fix this are very welcome.
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1788
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Templates not working after upgrading to 2.2.16

Post by DIGI3 »

I guess we never updated those to be 2.0 compatible (see the note above them), I'll make a note to revisit that. Try adding scope="global" to any of the {assign} statements. Have a look at the included sample templates for more updated examples.
Not getting the answer you need? CMSMS support options
Post Reply

Return to “CMSMS Core”