21309 Posts in 5738 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 526 Views |
-
Select Sub Page to display in parent page

3 June 2011 at 8:36pm
Hi there,
I have the following page tree:
1. Province
1.1.Project
- Activities
-- activity one
-- activity two
-- activity three1.2.Project
- Activities
-- activity one
-- activity two
-- activity threeI would like to select all page under activities belong to all projects to display
within page parent page province.Could you please let me know if there is any trick.
Regards,
Bunheng -
Re: Select Sub Page to display in parent page

7 June 2011 at 10:01pm
Put the following function in your Province controller:
function ActivitiesList() {
$records = DataObject::get("Activity"); // assuming Activity is the right classname for your activity pages
}Now you can list all your activities in your Province theme file with a simple control.
<% control ActivitiesList %>
<h2>$Title</h2>
$Content
<% end_control %>Hope this helps.
| 526 Views | ||
|
Page:
1
|
Go to Top |

