[TYPO3-dev] Disable rendering
JoH asenau
info at cybercraft.de
Sun Apr 22 17:15:26 CEST 2007
> Any ideas why is this not working:
>
> lib.content < styles.content.get
> lib.content.if.isTrue = 0
>
> It should not render text at all, but it does.
Well it does, because it should ;-)
If you take a closer look you will notice:
styles.content.get = CONTENT
If you look at TSref you will see that CONTENT knows only these parameters:
select, table, renderObj, slie, wrap,stdWrap
CONTENT.if simply doesn't exist and thus has no effect.
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.0.0/view/8/9/
But when you dig deeper you will find that almost any TS parameter will be
available using stdWrap. And of course there is stdWrap.if
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.0.0/view/5/1/
lib.content < styles.content.get
lib.content.stdWrap.if.isTrue = 0
should switch off rendering completely.
And of course you can set "if" dynamically based on DB values, environment
variables or user input i.e.:
lib.content.stdWrap.if.isTrue.data = GP:myGetParameter
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