[Typo3] No support for nested conditions

Peter Russ peter.russ at 4many.net
Mon Aug 22 21:56:19 CEST 2005


Matthias Taugwalder wrote:

> Hi all
> 
> I got stuck in conditions in Typoscript... There seems to be a very strange
> behaviour...
> 
> What I want is the following: I have one template and a page with several
> languages and two page types...
> In the template I now want to set the templateFile for each
> language|pageType combination...
> 
> What I tried until know:
> 
> - Setting the values in a text variable and then temp.templateFile.file <
> temp.someVariableWithContents
> 	>>> didn't work
> 
> - Nested conditions such as:
> 	[<languageCondition>][<pageTypeCondition>]		# AND
> statement
> 		temp.templateFile.file = fileadmin/file1.html
> 	[end]
> 
> 	>>> Seemed to work, but then I discovered problems since I have more
> than one language. Then always
> 		the variable had the value of the last defined language.
> 
> 
> Is there any way to get this to work? Is Typoscript too limited to handle
> such expressions?
> 
> Thanks for any hints very much.
> 
> 
> 
> Best regards,
> 
> Matthias Taugwalder
>  
> ---
> Matthias Taugwalder
> matthias.taugwalder at bluewin.ch

By default there is NO support for NESTED conditions. Pls. read  TSREF. 
To get "nested" conditions to work you either could rearrange your query 
(if possible) or install an extension to get nested conditions supported.

Regs Peterg

-- 
_____________________________
4Many® Services
openBC: http://www.openbc.com/go/invuid/Peter_Russ



More information about the TYPO3-english mailing list