[TYPO3-dev] Disable rendering

JoH asenau info at cybercraft.de
Mon Apr 23 00:12:11 CEST 2007


>> lib.content < styles.content.get
>> lib.content.stdWrap.if.isTrue = 0
>
> Just tried:
>
> lib.content < styles.content.get
> lib.content.stdWrap.if.isTrue = {$constant}
>
> Why is it rendered when the constant is not defined?

Because then nothing gets replaced and the value you are checking is still
$constant, which is definitely not false or 0 so it's kind of true.

If you want to disable stuff like that you got two options:
1. write "constant = 0" to your constants section
2. Don't use any "if" at all but a constant only:

{$constant}lib.content < styles.content.get

and then write something like this to your constants section to disable the
stuff:
constant = #

if you want to enable the seutp part simply remove the # (but not constant
=) and it will reappear.

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
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com






More information about the TYPO3-dev mailing list