How to set Sitecore Droptree source for the item itself

I want to set the droptree source for an element, so every time I create an instance of this template, I can select its children. Obviously, I cannot add the element identifier to the template, as it will be different for each instance of the template.

I tried $idin the vain hope that this might work, but it is not.

Is there any way to do this?

+5
source share
2 answers

I think you can just use the query and just set the source to a relative path:

query:./*

This should set the source for the children of the current node.

: , . query doc SDN.

+7

XPath, self:: parent::. descendant:: child::. , self::

+1

All Articles