Page 1 of 1

Differenet styling in cms double content error ?

Posted: Wed Dec 26, 2012 3:27 pm
by slu
Hello out there, I am trying to to use different
css formatting depending on $show_sidebarmenu . The code is like this:

<!-- CONTENT 3 spaltig mit sidebar -->
{if $show_sidebarmenu == "+"}
<div id="content">
<div class="col-one">
{if $show_extra == "+"}
<h2>{title}</h2>
{/if}
{content}
</div>
</div>
{else}
<!-- CONTENT 2 spaltig ohne sidebar -->
<div id="content">
<div class="col-one-wide">
{if $show_extra == "+"}
<h2>{title}</h2>
{/if}
{content}
</div>
</div>
{/if}


It works, but now I get a cms Error if I try to
edit Content with TinyMCE.
What may I do ?
Thank you very much for your help.

Re: Differenet styling in cms double content error ?

Posted: Wed Dec 26, 2012 9:30 pm
by Jo Morg
You shouldn't be calling {content} twice on the template.
You can, however use {content assign=maincontent label="My content block"} just after {process_pagedata} and change each {content} you have on your original template to {$maincontent}

Re: Differenet styling in cms double content error ?

Posted: Thu Dec 27, 2012 9:21 am
by slu
Jo Morg wrote:You shouldn't be calling {content} twice on the template.
You can, however use {content assign=maincontent label="My content block"} just after {process_pagedata} and change each {content} you have on your original template to {$maincontent}

Thank You Jo !
This works fine
Best
slu

Re: Differenet styling in cms double content error ?

Posted: Thu Dec 27, 2012 12:43 pm
by Jo Morg
You're welcome.
Please mark as [solved].