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.

General Questions /

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

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

display children pages with thumbnail


Reply


2 Posts   426 Views

Avatar
lozhowlett

Community Member, 146 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, 1106 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