[SOLVED] One or more links

Hey there! :slight_smile:

I’ve created my own content element which works fine. In this element you can enter a link. But it’s always only one link. I need the possibility to enter n links. Maybe I’d like to enter three links in one content element and in the next one five. Do You know what I mean and can anyone help me to realize this, please?

Kind regards,
Michael

I’ve found a solution. For everyone with the same problem: You have to create an attribute of the type ‘references’ and in the editor options you can define the allowed node types. Here’s an example:

'Your:Object':
  superTypes:
    'Neos.Neos:Content': TRUE
  properties:
    links:
      type: 'references'
      ui:
        inspector:
          group: 'links'
          editorOptions:
            nodeTypes: ['Neos.Neos:Shortcut', 'Neos.Neos:Document']
        reloadIfChanged: TRUE
1 Like