AI OnAI Off
Something like this?
foreach (var child in children) { var pageUrl = UrlResolver.Current.GetUrl(child); }
If UrlResolver.Current is unavailable in EPiServer 7, then you could use something like this:
var pageUrl = ServiceLocator.Current.GetInstance<UrlResolver>().GetVirtualPath(pageLink);
Hi,
through below code i m able to get all the pages which are located under the root page.
but i want to find the URL of all the pages.
i m not able to figure out how to get the URL.
could you please help me on this.
PageDataCollection children = EPiServer.DataFactory.Instance.GetChildren(PageReference.RootPage);