[Typo3] IF / Case Statements

Marcel Douwstra marcel.douwstra at tros.nl
Tue Sep 20 11:06:08 CEST 2005


Eric,

have a read here, should get you started on conditions in typoscript : 
http://typo3.org/documentation/document-library/doc_core_ts/Conditions/

The Typoscrift reference also contains a lot of info on this.

Cheers,

Marcel Douwstra


Miller, Eric A. wrote:
> Been looking for a "good" description with some example of if / case
> statements inside TypoScript.
> 
> For example how would I translate this:
> 
> If (isdefined(subparts.content))
> {
> 	subparts.content.wrap = <div class="wrapped"> | </div>
> }
> Else
> {
> 	subparts.content.wrap = <div class="unwrapped"> | </div>
> }
> 
> -----------------------------------------
> Eric Miller
> Web Systems Engineer
> Creighton University
> 
> Office: 402.280.3933
> Cell:   402.740.2518
> 
> ----------------------------------------
> "People in this world look at things mistakenly, and think that what
> they do not understand must be the void. This is not the true void. It
> is bewilderment..." ~Miyamoto Musashi
> ----------------------------------------



More information about the TYPO3-english mailing list