Parent ID of a page ?
How do I get the parent ID of a page if I have the page title.. For example, if I had a page named TestPage. How would I get the parent ID of TestPage ? Code please ..
Thanks in advance,
Jon
Hi Jon,
First you need to get the PageNode object. Then you can call PageNode.Parent that returns the parent PageNode.
sample code
var pg = App.WorkWith().Pages().Where(p => p.Title ==
"somevalue"
).Get().SingleOrDefault();
var parent = pg.Parent;