[TYPO3] Render MENU differently IF abstract-field content
Torsten Schrade
schrade at lineara.de
Sun Jan 15 00:20:46 CET 2006
Hi,
Is
> there a way to add style only the cells that have some content?:
> this is something I tried with no success:
>
> temp.sub_navi.1.ACT.before.if {
> value.data = abstract
> isTrue.field = abstract
> field = abstract
> wrap = <div id="abstract-act">|</div>
> negate = 1
> }
>
Firstly, if you use .isTrue with fields the function returns true if the
field is set ;) and secondly, you should use innerWrap property for
applying .if with .stdWrap (see TSRef).
So ist should be:
temp.sub_navi.1.NO.before.innerWrap = <div id="abstract">|</div>
And the condition:
temp.sub_navi.1.NO.before.innerWrap.if.isTrue.field = abstract
Now the wrap only gets set if the field abstract returns with content.
Greets,
Torsten
More information about the TYPO3-english
mailing list