Hi,
i have a problem with nested filters. the code is the following:
[[*img.show:notempty=`
<div id="main">
<div id="left" class="show[[*img.show]]"[[$img.Left:notempty=`style="background-image: url([[++base_url]][[$img.Left]])"`]]>
[[*headline.position:is=`left`:then=`123`:else=` `]]
</div>
[[*img.Center:notempty=`
<div id="center" class="show[[*img.show]]" style="background-image: url([[++base_url]][[*img.Center]])">
[[*headline.position:is=`center`:then=`123`:else=` `]]
</div>
`]]
[[*img.Right:notempty=`
<div id="right" class="show[[*img.show]]" style="background-image: url([[++base_url]][[*img.Right]])">
[[*headline.position:is=`right`:then=`123`:else=` `]]
</div>
`]]
<div class="clear"></div>
</div>
`]]
if img.show is empty, then instead an empty string the rendered output looks like this:
`]]
</div>
`]]
<div class="clear"></div>
</div>
well, i figured out that when i remove
[[*headline.position:is=`right`:then=`123`:else=` `]]
from the nested "notempty" (img.Center & img.Right) filter then the code is rendered properly.
so what is wrong with the "is" filter?
i am on the way to bypass the problem with my own snippet filter. but i am interested what i made wrong?
thx & regards
from germany
Edit: I am using MODX Revolution 2.2.6-pl (traditional)