Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am trying todo the following in umbraco 7.5.3
string feedXpath = "/root/HomePage/ListPage//*[@nodeType='" + @docTypeId + "']";
var feedItems = Umbraco.TypedContentAtXPath(feedXpath);
This xpath gives me 44 items. However I have more than that. When i open the xml config cache file in notepad++ and run generated xpath i.e
I get the right number. Is there a bug with xpath in Umbraco?
I'd say you should look in the implementation of TypedContentAtXPath() - it may filter out nodes that for some reason can't be converted to complete models?
Are the 44 you get by any chance "top" levels (i.e., are all the missing ones descendants of those 44)?
Seems like missing ones are descendants. For now i am going to do it with Descendants() and linq (somewhere some kittens have died) but this page is a one off so not to fussed about performance.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted