Looking at the source on GitHub, it looks like you can use these tokens: $current, $parent, $site & $root in the XPath queries - to go 2 levels up, I'd use this:
$parent/parent::* (or simply $parent/..)
Using $parent instead of $current should work even when the current page hasn't been published yet.
xPath Expressions
Hi,
which xPath Expressions are supported. In my case I would have to go 2 Levels up. Is this possible?
g/h
Hi Horst,
Looking at the source on GitHub, it looks like you can use these tokens:
$current
,$parent
,$site
&$root
in the XPath queries - to go 2 levels up, I'd use this:$parent/parent::*
(or simply$parent/..
)Using
$parent
instead of$current
should work even when the current page hasn't been published yet.Hope that helps,
/Chriztian
is working on a reply...