New answers tagged

-2

So this is what I ended up coming up with, with the help of the above response. query:./ancestor-or-self::*[@@templateid='{AD55B888-20A7-43A3-B487-6FE5658F9DAC}']//*[@@templatename='Country'] So Richard thanks for helping me in the right direction.


3

What you need to do is walk back up the tree to your Site root item and then path down to the Datasource folder you need. You can do it something like this: query:./ancestor-or-self::*[@@templatename='Your SiteRoot Template']/#red datasource#/Countries This is saying ./ start at the current item, ancestor-or-self - get the first item either me or any of my ...


Top 50 recent answers are included