Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

How to get all nested subpages?

Go to End



Community Member, 8 Posts

27 September 2010 at 9:47am


I have the following site structure:

  |- branch1 [PageHolder]
  |   |- page1.1 [Page]
  |   |- page1.2 [Page]
  |- branch2 [PageHolder]
  |   |- branch2.1 [PageHolder]
  |   |   |- page2.1.1 [Page]
  |   |   |- page2.1.2 [Page]
  |   |- branch2.2 [PageHolder]
  |   |   |- branch2.2.1 [PageHolder]
  |   |       |- page2.2.1.1 [Page]
  |   |       |- page2.2.1.2 [Page]
  |   |- page2.3 [Page]
  |   |- page2.4 [Page]

The problem is - how to get all pages (but not page holders) for branch2
in case to display an index on the branch2 page?

Thank you for any help.