I would like to have a query to use in a sitecore template field (multilist) that will populate the list with items of a specific template id that only exist under the current item. Is this possible?
You can get all the children of your item using query like:
query:./*[@@templateid='{SOME TEMPLATE ID}']
or all descendants
query:.//*[@@templateid='{SOME TEMPLATE ID}']
1
votes
Here is the solution I found that works for me: TemplateFilter={C3E067D2-8E15-4294-934B-B53B537894F6}&StartSearchLocation=query:./* . Basically the same just with a different syntax. Thanks again Marek
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more