November Happy Hour will be moved to Thursday December 5th.

get children of a page

Vote:
 

Hi!

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

Problem:

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...

#50728
May 11, 2011 10:44
Vote:
 

Problem solved!!

 

used PermanentLinkUtility

#50738
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.