[TYPO3-german] Schleifen in Fluidtemplates im Typo3 CMS

Kay Strobach typo3 at kay-strobach.de
Fri May 31 15:04:41 CEST 2013


Hallo Pawel,

ja das geht, du brauchst in deinem extbase controller ein repository,
dass dir die entsprechenden objekte ausgibt.

http://wiki.typo3.org/fluid -> f:for

Grüße
Kay

Am 31.05.13 14:28, schrieb Pawel Müller:
> Servus Liste,
> 
> ich bin neu in Typo3 und fange gleich mit Version 6.1 an. Da gibt es ja die Fluid Templates. Benutze ich auch. Mit Layouts und Templates (Partials brauche ich grad nicht). Was mich aber interessiert ist, ob man auch in Typo3 CMS Foreach Schleifen im Template machen kann. In Flow geht das ja und alle Beispiele die ich gesehen habe waren auch immer für Flow.
> 
> Wenn ich also so etwas machen will will
> 
> <f:for each="{postings}" as="posting">
> <h2>{posting.title}</h2>
>  <div class="author">{posting.author.name} {posting.author.email}</div>
>  <p>
>   <f:link.action action="details" arguments="{id : posting.id}">
>    {posting.teaser}
>   </f:link.action>
>  </p>
> </f:for> 
> 
> Wie definiere ich in TypoScript die Postings? Ist das ein COA? Ich vermute, dass müsste so etwas sein. Allerdings sieht mir das so aus, dass das Posting dann ein Objekt ist mit den Attributen author, id, usw. und author selbst wiederum ein Objekt ist.
> Geht das also wirklich momentan nur in Flow?
> 
> Ein kleines anschauliches Beispiel wäre klasse, falls es doch im CMS geht.
> 
> Vielen Dank und Grüße
> Pawel
> 
> 
> --
> Dipl. Ling. Pawel Müller
> Freiberuflicher Webentwickler
> Tel.: +43 699 190 230 51
> 
> 
> 
> 
> 


-- 
http://www.kay-strobach.de - Open Source Rocks

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org

Answer was useful - feel free to donate:
  -
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KPM9NAV73VDF2
  - https://flattr.com/profile/kaystrobach



More information about the TYPO3-german mailing list