[Neos] Adding additional data from PHP class in Page fluid template

Christian Müller christian.mueller at typo3.org
Thu Feb 13 20:02:34 CET 2014


Hi Pavlina,

Pavlina Drosos wrote:
> Hi all!
> I have added an additional property for the Gallery page in the inspector -
> a tag. And now I want to fetch all images from the Media library, which
> have this tag assigned and render them inside the Gallery page. And my
> question is - where to implement this? Is it possible to add additional
> variables to the fluid template of the Gallery page, which come from a PHP
> class and can I see an example of this somewhere in Neos?

I think you will want to create a plugin for this. There you can use the 
Repository from the Media package and get the tags and images directly, 
then put that into the fluid template.
Probably later we might add a way to directly access media from within 
TypoScript, but what you want is currently not possible without a plugin.

Cheers,
Christian
-- 
Christian Müller
Flow / Neos Team Community Contact

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




More information about the Neos mailing list