[Typo3] conditionnal output and TemplaVoila
Grégory Duchesnes
gregory at icilalune.com
Sun Dec 18 17:03:01 CET 2005
I already found another solution with css. It is a bit dirtier since it
leaves an empty div in the html code in case there's no content but it
works and more important, i understand how it works.
Nevertheless i'll try your solution for the sake of science and to feed
the FAQ ;)
Thanks for your help
Duch
Bernhard Kraft a écrit :
>Bernhard Kraft wrote:
>
>Hmm ... Then this will most probably work:
>
>5 = COA
>5 {
> # The only sub-cObj
> 10 = RECORDS
> 10.source.current=1
> 10.tables = tt_content
>
> # Define wrapping and condition
> wrap = <div id="optionnal_content"> | </div>
> if.value.current = 1
> if.equals =
># if.negate = 1
>}
>
>
>To say it: I never use isTrue isFalse but always .equals ... you can compare
>.value
>and
>.equals
>directly and negate the result with .negate if required.
>
>
>greets,
>Bernhard
>_______________________________________________
>Typo3-english mailing list
>Typo3-english at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>
>
More information about the TYPO3-english
mailing list