Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is there an editor which only allows a single item to be selected of a specific type?
The "Content Picker" editor allows you to set a "Start node" but not limit the content types allowed for picking.
The "Multinode Treepicker" does set the content type allowed ("Allow items of type"), and you can set the maximum number of items to 1 - this is my current working method, but it seems strange to allows return an array of one.
I would use a MNTP as you are currently doing, but you can override the Property Value Converter to change the return type of a property based on it's configuration.
There is a SuperValueConverters package that can do this for you (although when I last used it there was a small bug that means it breaks some core behaviour for special cases).
OH interesting - so, for example, instead of returning the array you can say return the first item of the array? Will explore, ty Nik!
Have a look at the code in this repo :-)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted