Search using XPath in UmbracoContext.Current.ContentCache.GetByXPath(xpath)
Hi,
on click of save and publish event(on saving not on saved) I would like to do searching using xpath in UmbracoContext.Current.ContentCache.GetByXPath(xpath).
what I would like to do is I want siblings of the current node excluding current node.
solution 1:
var currentNode = newNode(args.SavedEntities.FirstOrDefault().Id); //hasIdentity
var siblings = currentNode.GetSiblingNodes();
Solution 2:
using xpath
var xpath = "preceding-sibling::*[@isDoc and normalize-space(umbracoUrlName)]" ; // and Following siblings
Search using XPath in UmbracoContext.Current.ContentCache.GetByXPath(xpath)
Hi,
on click of save and publish event(on saving not on saved) I would like to do searching using xpath in UmbracoContext.Current.ContentCache.GetByXPath(xpath).
what I would like to do is I want siblings of the current node excluding current node.
solution 1:
Solution 2:
using xpath
is working on a reply...