[Neos] Inspector drop-down containing media tags

Dominic Garms djgarms at gmail.com
Wed Jan 15 10:21:32 CET 2014


On 14/01/14 12:55, Mathias Bolt Lesniak, LiliO Design wrote:
> Hi!
>
> I wonder if someone can give me a kick in the right direction.
>
> I am trying to make a custom content element for listing media files connected to a particular tag. To do this I would like to have a property called “tag” displayed as a drop-down menu (select box) in the Inspector UI in Neos. The new content element type can be inserted on a page, but there it stops.
>
> My NodeTypes.yaml file looks like below, and (apart from that this is obviously wrong, as nothing appears in the Inspector) I wonder how to populate the menu with the tags. I guess there’s maybe bit of JavaScript needed?
>
> ****
> 'Lilio.NodeTypes.Files:List':
>    superTypes: ['TYPO3.Neos:Content']
>    ui:
>      label: 'File List'
>      inspector:
>        groups:
>          tag:
>            label: 'Tag'
>            position: 5
>    properties:
>      tag:
>        type: TYPO3\Media\Domain\Model\Tag
>        ui:
>          label: 'Tag'
>          reloadIfChanged: TRUE
>          inspector:
>            editor: TYPO3.Neos/Inspector/Editors/SelectBoxEditor
>            group: 'tag'
> ****
>
>
> Thanks for the help!
>
>
> Best wishes
>
> Mathias Bolt Lesniak
> LiliO - www.lilio.no
> mathias at lilio.com
> +47 473 28 734
>
> Alle priser er eks. mva. når ikke annet er oppgitt.
> Alle oppdrag forholder seg til standard tjenesteavtale:
> http://www.lilio.no/om_oss/tjenesteavtale/
>
>
>
>
Hi Mathias,

I guess you need to write an own ViewHelper which is now taking the tag 
argument and renders all images related to the tag. You need to write 
php I don't think that currently any script is doing the work for you. 
As I haven't done it I can't give you more help, but I would go for the 
ViewHelper solution, I did it with the Galleria extension for TYPO3 the 
same way.

Cheers,
Dominic


More information about the Neos mailing list