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.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

2 ArticleHolder on one Page


Reply

3 Posts   1158 Views

Avatar
nomidi

11 November 2008 at 10:09pm Community Member, 2 Posts

Would it be possible to put 2 ArticleHolder on one page ?

Avatar
Fuzz10

12 November 2008 at 2:33am Community Member, 787 Posts

Welcome to Silverstripe !

There are more ways to achieve what you want.

You can use :

<% control ChildrenOf(page-url) %> to immediately get all children from your holder

or you could use
DataObject::get_one or DataObject::get to obtain your Articleholder in your PHP class

Avatar
nomidi

13 November 2008 at 9:56pm Community Member, 2 Posts

thx !