[TYPO3-german] Array mithilfe Index unter Fluid ausgeben

Cedric Ziel cedric at cedric-ziel.com
Mon Mar 3 13:01:14 CET 2014


  Hallo,

auf Properties und Indizes kannst Du mittels "dot" Notation zugreifen:

{unread.19}

VG;
Cedric

Zitat von g4-lisz at tonarchiv.ch:

> Hallo Liste,
>
> ich habe irgendwo gelesen, dass man unter Fluid z.B.  mittels {xyz:2}
> den Wert mit Index=2 ausgeben kann, falls xyz ein Array ist.
> Geht das erst ab einer bestimmten Version? Bei mir scheint es nämlich
> nicht zu funktionieren, oder aber ich habe es falsch verstanden.
>
> In meine ActionController übergebe ich:
> $this->view->assign('unread', array(19 => '1'));
>
> Wenn ich im Temlate {unread:19} ausgebe, erscheint einfach der String
> "array".
>
> Was mache ich falsch?
>
> Beste Grüße,
> Till
>
> _______________________________________________
> TYPO3-german mailing list
>
TYPO3-german at lists.typo3.orghttp://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german


More information about the TYPO3-german mailing list