Jump to:

23377 Posts in 18296 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Retrieving Entire Page Child Page Content

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

Page: 1
Go to End
Author Topic: 349 Views
  • yas
    Avatar
    Community Member
    1 Post

    Retrieving Entire Page Child Page Content Link to this post

    I have been working with silver stripe now and have found it easy to implement a hierarchical page structure with parent pages pulling content from their respective child pages.

    I have however now come across a problem, when wanting to pull the entire child page content into a parent page.

    I have the following structure
    -All Distributors
    - City Distributors
    - Individual Distributors

    The Individual Distributors are collected on the City Distributors page, and what I am trying to achieve is to Add All City Distributors to the All Distributors page.

    The City Distributors page thus doesnt have any actual content, and its just a collection of content from child pages, I want to be able to pull the entire page content as is from the page and add it onto the parent page.

    I have been searching the forum, but have not found anything quite as specific, any help would be greatly appreciated, or maybe just a pointer int the right direction.

    Ideally what I would want to do is to have the following control in the Top Parent (All Distributors) page

    <% control Children %>
    <li>$Children.Content</li>
    <% end_control %>

    I cant use the $Content Variable to acheive this as the Child pages do not have any actual content? is there another way around this?

    349 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.