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

PageReference vs Page ID

Vote:
 
I have managed to retrieve the Page ID for a specific page. Now I want use NewsList and list all news (childs) for this page. I was thinking in line of something like this: EPiServer.Core.PageDataCollection ChildPages; ChildPages = GetChildren(pageLink) The problem is that pageLink is of type PageReference, and all I have is an pageID of the type string. So my question is: How do I list articles/news/pages whn I only have the PageID?
#12932
Feb 12, 2007 11:40
Vote:
 
Hi It would be something like this: EPiServer.Core.PageDataCollection ChildPages; ChildPages = GetChildren(new PageReference(pageID))
#15116
Feb 12, 2007 13:24
Vote:
 
Thanks, that did the trick :-)
#15117
Feb 13, 2007 9:08
* 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.