You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have site setup where articles can live in multiple locations in the tree. The tree is structured like this
Category
Subcategory
Article
I want to a editor to be able to pick only articles. But the UmbracoContentDataListSource only allows to set a start node.
In my case that would be the parent of the category node, but this does not prevent the editor from selecting categories or subcategories.
Describe the solution you'd like
I would like to see a doctype restriction on the data source. So I can have a startnode high up the tree, but only allow for a certain doctype to be picked. With a custom editor or templated editor I can than make it look nice for editors.
Describe alternatives you've considered
I think for now MNTP is the only alternative. But than a editor needs to add each article one at a time. With a custom editor I could have like a multi select option.
Additional context
Because the UmbracoContentDataListSource is sealed I can't inherit it to make extension. So for now I need to copy the source in to my own custom list and make modifications there.
The text was updated successfully, but these errors were encountered:
I'd explored quite a few options while developing the "Umbraco Content" data-source. Unsure how much XPath would be promoted (within the Umbraco ecosystem) moving forwards, so didn't want to go too heavy on it. So I settled for a simpler use-case of selecting child nodes, (which is all I've used it for on my own client projects so far).
However since this has now been asked twice in the past week or so, I'll give it some more thought. 💡 👍
I doubt I'll have anything immediate though, so custom modified data-source is the way to go in the meantime.
Closing this ticket off. I've added a hidden feature 🤫 to upcoming v1.4, to have an advanced XPath for querying Umbraco Content, ref: commit 2f94022.
re: hidden features, I've developed many custom data-sources, but feel that a long list of data-sources would be quite overwhelming for a non-advanced user, so have made them to be "unlockable" features. I'll explain more closer to the time of v1.4 release.
Is your feature request related to a problem? Please describe.
I have site setup where articles can live in multiple locations in the tree. The tree is structured like this
I want to a editor to be able to pick only articles. But the UmbracoContentDataListSource only allows to set a start node.
In my case that would be the parent of the category node, but this does not prevent the editor from selecting categories or subcategories.
Describe the solution you'd like
I would like to see a doctype restriction on the data source. So I can have a startnode high up the tree, but only allow for a certain doctype to be picked. With a custom editor or templated editor I can than make it look nice for editors.
Describe alternatives you've considered
I think for now MNTP is the only alternative. But than a editor needs to add each article one at a time. With a custom editor I could have like a multi select option.
Additional context
Because the UmbracoContentDataListSource is sealed I can't inherit it to make extension. So for now I need to copy the source in to my own custom list and make modifications there.
The text was updated successfully, but these errors were encountered: