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"> </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"> </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.
Templates not working after upgrading to 2.2.16
-
- Forum Members
- Posts: 21
- Joined: Thu Mar 23, 2006 11:06 am
Re: Templates not working after upgrading to 2.2.16
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