[TYPO3] treeLevel problem, (am I right?)

Tyler Kraft tyler.kraft at netefficiency.co.uk
Thu Jul 24 19:16:19 CEST 2008


Hi

If you read TS_syntax document it'll tell you that you can't use 
conditions while in the braces

What I'd do is this:

temp.multiNormal = COA
temp.multiNormal {

	20 = CONTENT
	20 {
	table = tt_content
	select.orderBy = sorting
	select.where = colPos = 0
	select.languageField  = sys_language_uid
	}
}
[treeLevel = 5]
temp.multiNormal.10 = TEXT
temp.multiNormal.10.value = TEST OF TREELEVEL
[global]

Better yet I'd also not use the content method (unless you really need 
it) but instead I'd use the css_styled_content extension and do it this way:

temp.multiNormal = COA
temp.multiNormal {
   	20< style.content.get
}
[treeLevel = 5]
temp.multiNormal.10 = TEXT
temp.multiNormal.10.value = TEST OF TREELEVEL
[global]

hth




Marcus Biesioroff wrote:
> ellou' again
> 
> you wrote:
> 
>> ellou' List!
> 
>> I'm trying use a treeLevel to add some functions only on pages of
>> certain level ... :) (that's natural)
> 
>> But... unfortunately it doesn't seems to work...
> 
> 
> Oh I recognized that below code is working. Is this correct???
> 
> Sorry for dumb questions, but I didn't use it yet and have no sure
> which way is correct (last one is working ;) )
> :
> 
> [treeLevel = 5]
> multiNormal = COA
> multiNormal {
>  
>   10 = TEXT
>   10.value = TEST OF TREELEVEL
> 
>   20 = CONTENT
>   20 {
>     table = tt_content
>     select.orderBy = sorting
>     select.where = colPos = 0
>     select.languageField  = sys_language_uid
>   }
> }
> 
> [else]
> 
> multiNormal = COA
> multiNormal {
>  
>   20 = CONTENT
>   20 {
>     table = tt_content
>     select.orderBy = sorting
>     select.where = colPos = 0
>     select.languageField  = sys_language_uid
>   }
> }
> 
> [global]
> 
> 
> 
> 
> 
> 


More information about the TYPO3-english mailing list