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.
Differenet styling in cms double content error ?
Re: Differenet styling in cms double content error ?
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}
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}
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: Differenet styling in cms double content error ?
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 ?
You're welcome.
Please mark as [solved].
Please mark as [solved].
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!