[TYPO3-english] T3 4.3.2 TS CONFIG condition on treeLevel
bernd wilke
t3ng at pi-phi.tk
Thu Mar 11 16:52:00 CET 2010
Am Tue, 09 Mar 2010 10:42:49 +0100 schrieb Riccardo De Contardi:
> Hello everybody:
> A little question about T3 4.3.2 and conditions in TSCONFIG: I know that
> T3 4.3.x allows conditions in Tsconfig, but...when I try to make a
> condition like in TS Setup for my Home page only:
>
> [treeLevel = 0]
> #my TSCONFIG
> [global]
>
> well, this doesn't work. It works fine if I write:
>
> [treeLevel = 1]
> #my TSCONFIG
> [global]
>
> Could you tell me why? (Just curious;))
different conditions can't compare to 0. it is like undefined.
As you mostly need default-values you have to set them for condition = 0
any other value can be selected by conditions.
so a typical configuration may be:
myvalue = 123
[my_condition = 1]
myvalue = 345
[my_condition = 2]
myvalue = 567
[end]
you also may use the [else]
bernd
--
http://www.pi-phi.de/cheatsheet.html
More information about the TYPO3-english
mailing list