Try our conversational search powered by Generative AI!

PageList with given PageLink's

Vote:
 
I need to present a PageList and I already knows the PageLink Id's. Example: I already know the PageLink ID of 25 pages in EPiServer: Page 1, PageLink.ID = 132 Page 2, PageLink.ID = 4434 Page 3, PageLink.ID = 544 ...and so on... What is the most efficient way to get these pages and assign them to a PageList? Regards, Andreas Ek.
#17637
May 07, 2007 10:48
Vote:
 
Hi Andreas! You can try to populate a PageDataCollection manually, something like this: PageDataCollection pdc = new PageDataCollection(); pdc.Add( Global.EPDataFactory.GetPage( new PageReference(132))); pdc.Add( Global.EPDataFactory.GetPage( new PageReference(4434))); pdc.Add( Global.EPDataFactory.GetPage( new PageReference(544))); pageList.DataSource = pdc; pageList.DataBind(); Regards, Johan Olofsson
#18469
May 07, 2007 12:02
* 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.