Jump to:

3435 Posts in 1026 Topics by 866 members

Template Questions

SilverStripe Forums » Template Questions » Controlling Parents and Children

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

Page: 1
Go to End
Author Topic: 969 Views
  • PinkAlert
    Avatar
    Community Member
    7 Posts

    Controlling Parents and Children Link to this post

    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!

  • PinkAlert
    Avatar
    Community Member
    7 Posts

    Re: Controlling Parents and Children Link to this post

    Never mind! I found the solution.

    I removed the inheritance between HomeHolder and LinksPage.

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

    969 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.