[TYPO3-german] Fluid Array

carsten falkenberg codefresser at gmail.com
Sat Jan 31 18:29:12 CET 2015


Hallo Andre,

in dem Fall würde ich evtl. mit einem Iterator arbeiten, z. B.

<f:for each="{projekt.projektbild->dce:explode()}" as="projektbild"
iterator="i">
<f:if condition="{i.cycle}==1">
{projektbild}
</f:if>

usw.

Siehe auch hier:
http://docs.typo3.org/typo3cms/ExtbaseGuide/Fluid/ViewHelper/For.html

Viele Grüße
Carsten

Am 31. Januar 2015 um 18:07 schrieb Andre Sancken <evilknevil10 at gmx.de>:

> Hi,
>
> super danke. Aber wie komme ich jetzt an die einzelnen Elemente:
> Habs so:
>
>
> <f:for each="{projekt.projektbild->dce:explode()}" as="projektbild">
>                                                            {projektbild}
>                                                          </f:for>
>
> So werden mir jetzt alle ausgegeben. Jetzt möchte ich an einer Stelle aber
> immer nur das erste Bild ausgeben. Wenn ich es so probiere:
> {projektbild.0} wird nichts ausgegeben.
>
> Andre
>
>
> > Am 31.01.2015 um 16:44 schrieb David Greiner <davidgreiner at gmx.net>:
> >
> > Versuchs doch mal mit
> > <f:for each="{projekt.projektbild->dce:explode()}" as="projektbild">
> >
> > Gruß
> >
> > David Greiner
> > -----------------------------------------
> > TYPO3-Freelancer
> > Certified TYPO3 Integrator
> > hallo at davidgreiner.de
> > www.davidgreiner.deAm 31.01.2015 15:47 schrieb Andre Sancken : > > Ich
> bin jetzt einen schritt weiter. habe jetzt mein string an den viewhelper
> übergeben. > > {projekt.projektbild} > > jetzt wird mir natürlich immer
> array ausgegeben. wie komme ich jetzt an die einzelnen arrays und ihre
> bestandteile? klar mit dem viewhelper for:each. aber welchen namen übergebe
> ich der schleife? > _______________________________________________ >
> 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
>
> _______________________________________________
> 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