[Typo3-UG Oesterreich] Typoscript Syntax

Wolfgang Klinger wolfgang at stufenlos.net
Fri Aug 12 08:53:05 CEST 2005


 Hallo!

 Jakob Kristoferitsch schrieb folgendes am 12.08.2005:
> > Ich möchte etwas in der Art erzeugen:
> > Variante 1:
> > <div>
> >   styles.content.get
> > </div>
> > Variante 2 (wenn styles.content.getRight nicht leer):
> > <div>
> >   <table>
> >    <tr>
> >     <td>styles.content.getLeft</td>
> >     <td rowspan="2">styles.content.getRight</td>
> >    </tr><tr>
> >     <td>styles.content.get</td>
> >    </tr>
> >   </table>
> > </div>
> > Wenn das irgendwie anders geht bin ich natürlich auch glücklich...

 Ohne Tabellen leicht(er).

-------
temp.content_top = COA
temp.content_top.wrap = <div style="clear: both;">|</div>
temp.content_top.10 < styles.content.getLeft
temp.content_top.10.stdWrap.required = 1
temp.content_top.10.stdWrap.wrap = <div style="float: left;">|</div>
temp.content_top.20 < styles.content.getRight
temp.content_top.20.stdWrap.required = 1
temp.content_top.20.stdWrap.wrap = <div style="float: right;">|</div>
temp.content < styles.content.get
temp.content.stdWrap.wrap = <div style="clear: both;">|</div>

page.10 < temp.content_top
page.20 < temp.content
-------

 oder so ähnlich...

----
 zweite Variante:
 du machst ein kleines PHP Skript, dem du 
    styles.content.get
    styles.content.getRight
    styles.content.getLeft
 übergibst, das von tslib_content rendern läßt 
 und baust dir dort dein Layout entsprechend zusammen 
 (je nachdem ob es Inhalte gibt oder nicht).


 lg
 Wolfgang





More information about the TYPO3-at mailing list