So the two different versions of the site can have different content (products).
Now to the problem
On each product there is a Multinode Treepicker where the editor can choose "Related products".
I'd like to limit the editor to only be able to choose products corresponding to the version he is editing.
For instance: If the editor wants to add related products to a danish product, the treepicker should only display the products under the danish "Products"-folder. And vice versa for the german version.
How can I achieve this? Basically I want the Multinode Treepicker to start at the correct "Products"-folder.
Multinode treepicker XPath query Umbraco 7.2.1
We are creating a multilanguage site with a structure as follows:
So the two different versions of the site can have different content (products).
Now to the problem
On each product there is a Multinode Treepicker where the editor can choose "Related products".
I'd like to limit the editor to only be able to choose products corresponding to the version he is editing.
For instance: If the editor wants to add related products to a danish product, the treepicker should only display the products under the danish "Products"-folder. And vice versa for the german version.
How can I achieve this? Basically I want the Multinode Treepicker to start at the correct "Products"-folder.
Cheers, Nikola
After spending an hour and a half googling and searching forums for help and finding nothing, I decided to create a new topic here.
15 minutes later I find the solution... Typical.
The XPath that ended up working for me was:
$current/ancestor-or-self::ProductsPage
To be honest I don't know why it's working. Even
$parent/ancestor-or-self::ProductsPage
seems to work.is working on a reply...