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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

display children pages with thumbnail


Go to End


2 Posts   764 Views

Avatar
lozhowlett

Community Member, 151 Posts

5 October 2011 at 3:49am

Hi everyone

I have a page type "class LocationPage extends Page"

I want on this page to list all subpages (there will only be 1 level of children below it)...

i.e.

England
- Hotel 1
- Hotel 2
- Etc

Would I do this in the template with some sort of control, if so where might I find documentation on how to do this? Thanks so much!

Avatar
martimiz

Forum Moderator, 1391 Posts

5 October 2011 at 8:36am

Edited: 05/10/2011 8:38am

Have a look at the tutorial here:

http://doc.silverstripe.org/sapphire/en/tutorials/2-extending-a-basic-site

This should give you the info you need. Especially the part about the staff section that has the thumbnails you mention