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.

Template Questions /

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

Controlling Parents and Children


Go to End


2 Posts   1792 Views

Avatar
PinkAlert

Community Member, 7 Posts

13 November 2010 at 7:50pm

Hello!

I have a question about page children. Lets say I have a HomeHolder.ss and HomeHolder.php. The template HomeHolder.ss has multiple columns. Also, HomeHolder has 2 children types: NewsPage and LinksPage.

How can I show the children of a specific page type in different columns inside the template HomeHolder.ss?

Thanks for any help!

Avatar
PinkAlert

Community Member, 7 Posts

13 November 2010 at 8:01pm

Never mind! I found the solution.

I removed the inheritance between HomeHolder and LinksPage.

Instead I used: <% control Page(LinksPage) %>