
Sansar Tiwari (Customer) asked a question.
How to get parent Node url in .Net core renderer sitefinity in content list template
@inject Progress.Sitefinity.AspNetCore.Web.IRequestContext requestContext;
I'm using this but only able to get parentId not parent node url
@requestContext.PageNode.ParentId
Anyone help me
Hi Sansar,
The requestContext exposes only the properties of the current page node. To get the parent node url you need first to load the parent page node via REST SDK and then access its properties.
Below is an example:
Let me know if this helped.
Regards,
Sabrie