[Neos] Inspector drop-down containing media tags

Mathias Bolt Lesniak, LiliO Design mathias at lilio.com
Tue Jan 14 12:55:56 CET 2014


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/






More information about the Neos mailing list