Hallo.

Ich würde gerne checken ob die rechte Spalte leer ist und wenn ja dann soll ein 
Wert gesetzt werden.
Da ich dann gerne im Template col-2-3 auf col-1-1 (class) stellen möchte.

In PHP würd ich das so machen :)

$rechtespalte = CONTENTRIGHT

if (empty($rechtespalte)) {
   echo 'col-2-3 ';
}
else {
   echo 'col-1-1 ';
}

Das habe ich in meinem TypoScript drinnen:

page.10.subparts {

 
////////////////////////////////////////////////////////////////////////////////////////////
 //
 // Subpart CONTENTRIGHT
 //
 
////////////////////////////////////////////////////////////////////////////////////////////

 CONTENTRIGHT = CONTENT
 CONTENTRIGHT < styles.content.getRight


 
////////////////////////////////////////////////////////////////////////////////////////////
 //
 // Subpart CONTENTMIDDLE
 //
 
////////////////////////////////////////////////////////////////////////////////////////////

 CONTENTMIDDLE = CONTENT
 CONTENTMIDDLE < styles.content.get

}

Ich möchte nicht 2 Templates anlegen, sondern das ganze über TypoScript steuern.

Liebe Grüße
Matthias
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an