0
votes

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?

2

2 Answers

1
votes

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