Hi
I am trying to fetch the title of the first/root (level 0) parent of a page at any given time. I have tried doing this:
@Dynamicweb.Frontend.PageView.GetPageviewByPageID(<placeholder for parent pageid>)).Meta.Title
But this only gets me the title of the parent just above the page I am on. The root parent i want to fetch, can be 3 levels above the current page. Any guidance on how I can fetch this via the API? Can´t find any relevant method or value in the PageView Class. Maybe I am missing something?
And can i fetch it in one go, or do I have to iterate backwards/upwards untill I reach the Root?
/Hans