Fetch all pages

I need to create a selectbox populated with all pages. How can I get hold of the entire tree structure?
Oct 27, 2005 14:51
You can use the PageTreeLoader PageTreeLoader ptl = new PageTreeLoader(); ptl.GetCompletePageTree(PageReference, Global.EPDataFactory)
Oct 27, 2005 16:12
Thanks, Solves my problem
Oct 31, 2005 13:12
Just beware that this will kill performance if the site has many pages. /Steve
Nov 03, 2005 20:16
Is there a better way to do it?
Nov 04, 2005 11:50
Not if you actually need all pages in your box (not sure what you mean by selectbox). If you've got a large site, displaying all pages at the same time will be rather hard to use for the visitor. So, not knowing exactly what you want to achieve, I cannot see a better way of doing this. Steve
Nov 05, 2005 18:49
Use EPiServer.WebControls.InputPageReference if you need the user to select 1 page. /Håkan
Nov 07, 2005 8:59
* 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.