Basically, a collection of filter types are setup in common content and configured in the listing page (parent) as a property with alias filterMasterCategories. This way, the child pages of that listing page only has access to the filter types configured to the listing.
This doesn't seem to work however in Umbraco 7; I get the following error:
Failed to retrieve entity data for query
root/CommonContent//FilterCategoryCollection[$parent/ancestor-or-self::*[filterMasterCategories
!= '']/filterMasterCategories = @id]
Namespace Manager or XsltContext needed. This query has a prefix,
variable, or user-defined function.
Was there a change in syntax between Umbraco 6 and 7?
MNTP xpath query to select start node broken in Umbraco 7
Hello
I've used the following xpath query in Umbraco 6 to set the start node for a MNTP control:
Basically, a collection of filter types are setup in common content and configured in the listing page (parent) as a property with alias filterMasterCategories. This way, the child pages of that listing page only has access to the filter types configured to the listing.
This doesn't seem to work however in Umbraco 7; I get the following error:
Was there a change in syntax between Umbraco 6 and 7?
Hi Joseph,
I believe $parentPage is just $parent in the Umbraco 7 version...
/Chriztian
Thanks Chriztian - I should have mention I did try that (and the error message that I got returned reflects it).
Any other ideas?
Hi Joseph,
Yeah, I see that now - my bad :(
Well, it looks like someone forgot to implement this correct - I don't think there's much you can do...
Is it only when you use $parent or does it fail for the other placeholders as well?
/Chriztian
I just stuck $current in there (in place of $parent) and got the same error message.
Is there a way for me to access the parent node without using the $parent placeholder?
Raised ticket for this here: http://issues.umbraco.org/issue/U4-6364
is working on a reply...