Is it possible to limit the new content picker (Umbraco.ContentPicker2) to a list of allowed doctype(s), sort of like the multinode tree picker but with only being able to select one item.
I know the new MNTP sort of works as you can configure this to only allow one item to be selected but even once this is done it still returns an IEnumerable and its a little clunky to put one item in a loop.
I could be doing this wrong and theres another property type to use but as I can see I only have two options:
• Use the MNTP, limited to only being able to select one item which still returns an IEnumerable.
• Or use the Content picker isnt limitable to doctype, but picks one item and returns an IPublishedContent which is what I ultimately need.
Seems messy and unessecary to loop over a single item... does it not?
Limit new content picker by Doctype
Is it possible to limit the new content picker (Umbraco.ContentPicker2) to a list of allowed doctype(s), sort of like the multinode tree picker but with only being able to select one item.
I know the new MNTP sort of works as you can configure this to only allow one item to be selected but even once this is done it still returns an IEnumerable and its a little clunky to put one item in a loop.
I could be doing this wrong and theres another property type to use but as I can see I only have two options:
• Use the MNTP, limited to only being able to select one item which still returns an IEnumerable.
• Or use the Content picker isnt limitable to doctype, but picks one item and returns an IPublishedContent which is what I ultimately need.
Seems messy and unessecary to loop over a single item... does it not?
We have the same problem with a new site build in 7.11.1.
It would be a nice feature in future to able to constrain the doc type on Umbraco.ContentPicker2.
is working on a reply...