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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

Subsites Virtual Page and <% control Children %>

Go to End



Community Member, 61 Posts

8 April 2011 at 7:48am


I am using the subsites module in order to share a common list of caravan stock across three other sites. In my "main site", I have a tree for which the level1 (StockList) has multiple level2 pages (StockItem).

I have then linked the stocklist pages in the other three sites to the level1 "main site" page. Testing demonstrates that the content of that level1 page is brought in fine, however if I use <% control Children %> to bring in the content from the level2, nothing is brought into the page.

Any ideas? I've also tried using a custom controller in StockList.php.