[TYPO3] [Condition in setup] Noob issue
Sylvain Gourvil
sylvain.gourvil at mediasmart.fr
Wed Mar 14 10:34:20 CET 2007
Dmitry Dulepov a écrit :
> Sylvain Gourvil wrote:
>
>> Hi all,
>>
>> I have red the documentation and lots of threads but I could not find
>> how to do such a simple thing :
>> I want to put in a temp TEXT, the title of the page if the current level
>> of the page is better than 1
>>
>> So I tried this in my template setup:
>> ...
>> [treelevel = 2]
>> subparts.pageTitle = TEXT
>> subparts.pageTitle.field = title
>> subparts.pageTitle.wrap = <h1> | </h1>
>> [global]
>> ...
>>
>>
>> but it does not work.
>>
>
> I am not good in MTB but it looks like you are trying conditions inside
> { } block. This will not work. Conditions work only on global level. I.e.
>
> temp.aaa = TEXT
> temp.aaa {
> value = 1
> [treelevel = 2]
> value = 2
> [global]
> }
>
> will not work while
>
>
> temp.aaa = TEXT
> temp.aaa {
> value = 1
> }
> [treelevel = 2]
> temp.aaa.value = 2
> [global]
>
> will work.
>
>
You make my day Dmitry !!
That is so simple that I do not find the answer.
Thanks a lot and have a good day
More information about the TYPO3-english
mailing list