[TYPO3-german] Layout Label für bestimmtes Inhaltselement ändern (TYPO3 7.6.4)

Johannes C. Laxander jc at laxander.com
Tue Apr 12 11:25:07 CEST 2016


Hallo Renzo,

tx_news.templateLayouts kannte ich schon und arbeite auch damit, allerdings bisher nur bei List-Ansichten. In der Doku steht auch: This entry should help you to use different templates for different (list) views.
Deshalb ging davon aus, dass Template Layouts für Detail-Ansichten nicht möglich sind. Im 'newsItem'-Objekt war diese Eigenschaft / Einstellung auch nicht zu finden. 

Ich bin nochmal mit debug in die Tiefe gegangen und habe herausgefunden, dass das ausgewählte Template Layout über settings.templateLayout zu bekommen ist.

Also kann ich jetzt auch für die Detail-Ansichten Layouts im Fluid Template unterscheiden! 

Trotzdem Danke für deine Hilfe!

Gruß, Johannes.


> -----Ursprüngliche Nachricht-----
> Von: typo3-german-bounces at lists.typo3.org [mailto:typo3-german-
> bounces at lists.typo3.org] Im Auftrag von Renzo Bauen
> Gesendet: Montag, 11. April 2016 13:08
> An: typo3-german at lists.typo3.org
> Betreff: Re: [TYPO3-german] Layout Label für bestimmtes Inhaltselement
> ändern (TYPO3 7.6.4)
> 
> Ganz einfach.....
> 
> tx_news.templateLayouts {
>   0 = Standard
>   1 = Mini-News
> }
> 
> den Code ins PageTSConfig aufnehmen und viola!
> 
> Beste Grüsse, Renzo
> --
> conPassione gmbh
> CH-3661 Uetendorf
> +41 33 345 00 92
> 
> 
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german



More information about the TYPO3-german mailing list