[TYPO3-german] Templateauswahl: "content.file =.." in Abhängigkeit vom Inhalt

mike miller mike.stuttgart at gmail.com
Wed Jan 25 23:50:18 CET 2006


..doch nicht so einfach die Sache!? :)

On 1/25/06, mike miller <mike.stuttgart at gmail.com> wrote:
>
> Hallo,
>
> wahrscheinlich einfache Sache..
> aber ich komme nicht drauf.. :(
>
> Folgendes..
> WENN (styles.content.getLeft)   {
>      content.file = fileadmin/template_a.html
> }
> SONST {
>      content.file = fileadmin/template_b.html
> }
> ..möchte ich unten, im TS-Code-Beispiel zwischen den Kommentarzeilen
> machen.
> ----------------------------------------------------------------
> plugin.tx_automaketemplate_pi1 {
>     content = FILE
>
>      #---- begin
>     content.file = fileadmin/template_a.html
>      # hier möchte ich "template_b.html" nehmen (Wenn inhalt "Links"
> existiert!) also die Zeile davor überschreiben
>      #---- end
>
>     elements {
>         BODY.all = 1
>         BODY.all.subpartMarker = DOCUMENT_BODY
>         DIV.id.Content = 1
>         DIV.id.ContentLeft = 1
>         HEAD.all = 1
>         HEAD.all.subpartMarker = DOCUMENT_HEADER
>     }
>     relPathPrefix = fileadmin/test_templates/
> }
> ----------------------------------------------------------------
>
> hat vielleicht jemand eine Idee?
>
> Danke im Voraus!
>
> Mike
>



More information about the TYPO3-german mailing list