[TYPO3] [Condition in setup] Noob issue
Dmitry Dulepov
9f4eetb02 at sneakemail.com
Wed Mar 14 10:29:23 CET 2007
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.
--
Dmitry Dulepov
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)
More information about the TYPO3-english
mailing list