I have created a page Named ExternalPage in Episerver using MVC. I want to get all the references of that paticular page and its Properties created by the user. Can anyone help me out how to get the references of the pages.
public class ExternalController : PageControllerBase
Hi!If i get you right you should be able to get children or get descending from your website root or startpage like this.
var pages = contentLoader.GetChildren<ExternalPage>(pageReference);
where pageReference is either startpage or your website root.Then just loop through your collection or pages and access the properties.
NOTICE, GetChildren will only return the first level of the page tree.
Have a nice day.
If you mean references like incoming links or where that page is used as a page reference you can use
Thanks Robin i am able to find the solution now.