Try our conversational search powered by Generative AI!

get children of a page



We are currently using composer and quite frankly the documentation isnt the best and examples are hard to get.


Im using a EPiserver:PageList in a contentblock which i need to get a page's children in code behind. Code:

string URL = ContentFunctionData.Property["propertyname"].ToString();
if (String.IsNullOrEmpty(URL))
return null;

return GetChildren(new PageReference(URL));

 Im not sure how to get a ContentFunctionData property converted so i can get a pageid or something in order to getchildren OR how to use it with pageLinkProperty.

I do know how to do it with PageData objects but when it comes to composer and the ExtensionPageData im kind of lost...

May 11, 2011 10:44

Problem solved!!


used PermanentLinkUtility

May 11, 2011 12:02
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.