21310 Posts in 5739 Topics by 2604 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 187 Views |
-
Retrieving Entire Page Child Page Content

5 July 2012 at 8:43pm
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 DistributorsThe 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?
| 187 Views | ||
|
Page:
1
|
Go to Top |

