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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


1711 Views

Avatar
sca123

Community Member, 61 Posts

8 April 2011 at 7:48am

Hi

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.

Thanks
Samuel