tmsdev / Tms.Select

Select nodes instead of searching via reference editor in Neos CMS.
MIT License
5 stars 1 forks source link

Make references allow single select #12

Open kedelima opened 1 year ago

kedelima commented 1 year ago

The idea of this Issue is to have a property of the "references" type and allowing a singular choice (multiple: false|null). To facilitate switching between singular and multiple selection afterwards.

Current Problem: Within a nodeType, when type is set to type: references and it is not multiple: true, when selecting a single entry, it doesn't apply the changes.

I will provide a snippet, if anything is unclear or needs more details, please let me know.

Thanks for the hard work and any further support is much appreciated.

 categories:
       type: references
       ui:
         label: News Category
         inspector:
           group: newssettings
           editor: 'Neos.Neos/Inspector/Editors/SelectBoxEditor'
           editorOptions:
             dataSourceIdentifier: 'tms-select-nodedata'
             dataSourceDisableCaching: true
             #multiple: true
             dataSourceAdditionalData:
               nodeTypes: ['Foo.Bar:Tag.Category']
               #startingPoint: /sites
paavo commented 1 year ago

Any thoughts about an Implementation @jobee?