Feature request: Detect when MNTP has only a single item
First of all thanks for your work on this essential package. Most of this stuff should be in the core but anyway. One little pet peeve I have is resolving MNTP properties that only have a single item selected. I reckon this is quite a common situation as the MNTP is so much more flexible as a picker than the default.
It would be fantastic if, in this case we could simply do
Great idea! To check, if the maximum number of items in the data type prevalue is set to 1, then it becomes a single item instead of a collection?
I have the function in the media picker already except that it has a checkbox "allow multiple", it would be pretty similar for the multinode tree picker.
Feature request: Detect when MNTP has only a single item
First of all thanks for your work on this essential package. Most of this stuff should be in the core but anyway. One little pet peeve I have is resolving MNTP properties that only have a single item selected. I reckon this is quite a common situation as the MNTP is so much more flexible as a picker than the default.
It would be fantastic if, in this case we could simply do
rather than
what do you think? I can try a PR if there are no complications that you can foresee.
Thanks again, keep up the awesome work!
Hey Barry,
Great idea! To check, if the maximum number of items in the data type prevalue is set to 1, then it becomes a single item instead of a collection?
I have the function in the media picker already except that it has a checkbox "allow multiple", it would be pretty similar for the multinode tree picker.
Jeavon
Yes, exactly that. Fantastic! Let me know what the update drops and I will test in my project.
is working on a reply...