[TYPO3-german] tx news fluid Ausgabe aufteilen

Dirk Wenzel wenzel at webfox03.de
Sun Mar 23 19:59:14 CET 2014


den f:cyle -Viewhelper braucht es nicht.

<f:if condition="{conter.cycle} <= 1">
  <f:then>
   Bild 0 und 1
  </f:then>
  <f:else>
   weitere Bilder
  </f:else>
</f:if>

herzliche Grüße
Dirk

Am 23.03.14 14:26, schrieb Christian Leicht:
> So funktioniert es jetzt. Aber ich glaube nicht das es der richtige
> "saubere" Weg ist:
>
> <f:if condition="{newsItem.media}">
>                 <div class="container-fluid">
>                   <div class="row">
>                     <f:for each="{newsItem.media}" as="mediaElement"
> iteration="conter">
>                        <f:cycle values="{1: '1', 2: '2', 3: '3', 4: '4',
> 5: '5', 6: '6', 7: '7', 8: '8', 9: '9', 10: '10'}" as="cycle">
>                        <f:if condition="{cycle} >= 2">
>                             <div class="col-md-1">
>                                     <f:if condition="{mediaElement.type}
> == 0">
>                                         <f:render
> partial="List/MediaImageKlein" arguments="{mediaElement: mediaElement,
> settings:settings}" />
>                                     </f:if>
> </div>
>                         </f:if>
>                       </f:cycle>
>                     </f:for>
>                 </div> <!--row-->
>                 </div> <!--container-->
>                  </f:if>
>
> Christian


More information about the TYPO3-german mailing list