Guide: How to select entities in the inspector (Neos 2.3 LTS)


(Rene Woerz) #21

return is:

array(376)
 integer 0 => array(2)
   'value' (5) => '{"__identity":"002a6696-c327-4c8e-badd-4b7c4fdf97a7","__type":"My\\Package\\Domain\\Model\\Project"}' (107)
   'label' (5) => 'SAP Testmanager (m/w)' (21)
 integer 1 => array(2)
   'value' (5) => '{"__identity":"007d9548-ad37-42e6-90a1-548e4eb8d54e","__type":"My\\Package\\Domain\\Model\\Project"}' (107)
   'label' (5) => 'Testautomatisierungs-Experte (m/w)' (34)
 integer 2 => array(2)
   'value' (5) => '{"__identity":"016f3279-990e-4a79-8461-6a4e64d717c9","__type":"My\\Package\\Domain\\Model\\Project"}' (107)
   'label' (5) => 'Testmanager (m/w) Data Warehouse - MS SQL Datenbank' (51)
 integer 3 => array(2)
   'value' (5) => '{"__identity":"03317cb8-b26e-4db6-ab1e-6415be4702af","__type":"My\\Package\\Domain\\Model\\Project"}' (107)
   'label' (5) => 'SAP ACM Spezialist (m/w)' (24)

and so on…

it works as expected when i select a few options in the inspector and save:

image

My settings look like:

    dataTypes:
      'My\Package\Domain\Model\Project':
        typeConverter: 'Neos\Neos\TypeConverter\EntityToIdentityConverter'
        editor: 'Neos.Neos/Inspector/Editors/SelectBoxEditor'
        editorOptions:
          multiple: true
          dataSourceIdentifier: 'my-package-technology'

My NodeType:

project:
  type: array
  ui:
    inspector:
      group: 'settings'
      editor: 'Content/Inspector/Editors/SelectBoxEditor'
      editorOptions:
        multiple: true
        dataSourceIdentifier: 'my-package-technology'