Reputation: 776
I have problem with writing xpath expression that allows me to select nodes from current category. Briefly I have folder with products , this folder contains categories , categories contains products. My intension is to select only products from the category of my current location of tree picker. For example , I am in category called computers so I have to be able to select only products from this category.
Any Idea ?
Upvotes: 0
Views: 2454
Reputation: 3692
Something you could try is using the $currentPage variable as the starting point for your XPath expression. Something like the following example which is off the top my head and untested but worth a try:
$currentPage//product
or
$currentPage/descendant-or-self::Product
If you post up your current XPath expression it may also help others to understand where you are at already and provide more specific help.
Upvotes: 1