3

I have Multinode Treepicker in Umbraco 7.4.1. I'm trying to find out how to set the picker to start from the parent of the parent of my current node. I'm also need the option to set the picker to start from the siblings of the parent of my current node.

enter image description here

I tried to use:

$parent/$parent

or

$parent/parent

or

../

no success...

Thanks in advance for all helpers!

Jarufi
  • 308
  • 1
  • 12

2 Answers2

4

hr_117 found the answer !

$parent/..

thank's

Jarufi
  • 308
  • 1
  • 12
0

You can also use xpath filters like ancestor-or-self, etc and use filters like [self::type] to find what you want.

So if you want to find an ancestor which is a homepage you can write:

$current/ancestor-or-self::*[self::homepage]
Vahid Farahmandian
  • 6,081
  • 7
  • 42
  • 62
Ashkan S
  • 10,464
  • 6
  • 51
  • 80