i have a multi language site [each language under seperate node] with a product picker for which i use the tree picker.
i have a product source picker in the site homepage for each language which allows me to specify the node containing the products for that language site.
Xpath to specify source node from parent property
hi
i have a multi language site [each language under seperate node] with a product picker for which i use the tree picker.
i have a product source picker in the site homepage for each language which allows me to specify the node containing the products for that language site.
i am trying to reference that node using xpath:
$currentParent/ancestor-or-self::node [@level = 1]/data [@alias = 'prodSource']
in short this does not work, though the xpath is correct.
is it possible to do this currently???
I assume you are using Umbraco v 4.0.*?
The Xslt looks alright to me (any reason why you need to use $currentParent here?), how about giving this a shot:
$currentPage/ancestor-or-self::node[@nodeTypeAlias='your-homepage-alias']/...
or how about
$currentPage/ancestor-or-self::node[data[@alias='prodSource'] != '']/...
Hope that helps somehow,
Sascha
yes to the version question - v4.0.x, BUT still no joy.
it seems possible to identify a node using XSLT but not to use a property of a document in the node tree as a reference to identify the required node.
nevermind.
any other suggestions?
is working on a reply...