[TYPO3-english] conditionnal if / else wrap
JoH asenau
info at cybercraft.de
Tue Jan 12 17:06:10 CET 2010
> 2) else if less than 100 caracters, I want to set data to be empty
> (no "more" link)
>
> my code :
>
> 20 = TEXT
> 20 {
> data =
> wrap = <div class="details">|</div>
> if {
> isTrue.field = bodytext
> isFalse.substring = 100
> }
> }
> }
If step one is working you just have to invert the result of the if clause:
if {
isTrue.field = bodytext
isTrue.substring = 100
negate = 1
}
HTH
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
More information about the TYPO3-english
mailing list