{content} content is printed for every content block
Posted: Sat Nov 05, 2011 6:35 pm
I'm using cmsms version 1.10 "Martinique"
In my templates I've got several additional content blocks. They work fine exept in one template. In this template the text I put in the {content} wysiwyg area is printed for every additional content block. So when the content is "test test" the output is like:
test test
test test
test test
when there are 2 additional content blocks.
I do not see any difference to the templates that are working fine.
The smarty code in this template is:
Same behaviour when I put it in the template without assign, like this:
In my other templates there is no problem at all, and it almost seems to me that this problem accured after I tried to use the default attribute on the additional content blocks. So I've removed those but it doesn't make a difference.
The only big difference between the not-working and working template is that the not-working template is a protected content page.
Does anyone know what's going on here?
In my templates I've got several additional content blocks. They work fine exept in one template. In this template the text I put in the {content} wysiwyg area is printed for every additional content block. So when the content is "test test" the output is like:
test test
test test
test test
when there are 2 additional content blocks.
I do not see any difference to the templates that are working fine.
The smarty code in this template is:
Code: Select all
{content}
{content block="anotherblock1" assign="block1" oneline="true" label='first extra block'}
{content block="anotherblock2" assign="block2" label='second extra block'}
{$block1}
{$block2}
Code: Select all
{content}
{content block="anotherblock1" oneline="true" label='first extra block'}
{content block="anotherblock2" label='second extra block'}
The only big difference between the not-working and working template is that the not-working template is a protected content page.
Does anyone know what's going on here?