London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Hi Marc,
Try this:
e.g. http://www.xyz.com/home/shop/cart
var content = _contentLoader.GetBySegment(currentPage.ParentLink, "cart", ContentLanguage.PreferredCulture);
var ancesstor = _contentLoader.GetAncestors(content?.ContentLink);
Hi,
I was wondering if it is possible to get all the parent pages of a page that is routed through a partial router. For example: I have a page repository right below the root page in the content tree. In a website I have a node that routes to items in the repository. Now from that page in the repository I want to retrieve all parents from the page but how it's routed through the partial router.
Something like: ContentLoader.GetAncestors(currentPage.ContentLink) but then all ancesters via the virtual route as build by the partial router.
Any suggestions?
Kind regards,
Marc