[TYPO3-german] Layout-Klasse für HeaderContentFooter.html in Fluid Styled Content

Johannes C. Laxander jc at laxander.com
Thu Mar 24 18:20:14 CET 2016


Ich bin mir nicht sicher, aber es könnte sein, dass '0' auch als FALSCH interpretiert wird. Versuch doch mal:

{f:if(condition: '{data.layout} >= 0', then: 'layout-{data.layout}')}">

Johannes.

> -----Ursprüngliche Nachricht-----
> Von: typo3-german-bounces at lists.typo3.org [mailto:typo3-german-
> bounces at lists.typo3.org] Im Auftrag von André Sheydin
> Gesendet: Donnerstag, 24. März 2016 18:05
> An: German TYPO3 Userlist <typo3-german at lists.typo3.org>
> Betreff: Re: [TYPO3-german] Layout-Klasse für HeaderContentFooter.html in
> Fluid Styled Content
> 
> Die Ausgabe ist:
> 
> '0' (1 chars)
> 
> Viele Grüße, André
> 
> 
> > Am 24.03.2016 um 17:58 schrieb Johannes C. Laxander <jc at laxander.com>:
> >
> > Hast du mal  geschaut, was <f:debug>{data.layout}</f:debug> ausspuckt?
> >
> > Johannes.
> >
> >> bounces at lists.typo3.org] Im Auftrag von André Sheydin
> >> Gesendet: Donnerstag, 24. März 2016 16:28
> >>
> >> Hallo zusammen,
> >>
> >> ich möchte gerne die Layout-Angabe eines Inhaltselement in
> >> Layouts/HeaderContentFooter.html Template ausgeben:
> >>
> >> <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers
> >> <http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers>" data-namespace-
> >> typo3-fluid="true"> <div id="c{data.uid}" class="content
> >> {f:if(condition: data.layout, then:
> >> 'layout-{data.layout}')}">
> >> 	<f:render partial="Header" arguments="{_all}" />
> >> 	<f:render section="content" />
> >> 	<f:render partial="Footer" arguments="{_all}" /> </div> </html>
> >>
> >> Doch leider wird es nicht ausgegeben.
> >>
> >> In Templates/Textmedia.html funktioniert es mit der gleichen
> >> Condition ohne Probleme.
> >>
> >> Habt ihr eine Idee, wie ich den Wert in den Layout-Templates
> >> verfügbar mache?
> >>
> >>
> >> Besten Dank und schöne Ostern!
> >>
> >> André Sheydin
> >
> > _______________________________________________
> > TYPO3-german mailing list
> > TYPO3-german at lists.typo3.org
> > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
> 
> _______________________________________________
> 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