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   1163 Views

Avatar
nomidi

Community Member, 2 Posts

11 November 2008 at 10:09pm

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

Avatar
Fuzz10

Community Member, 787 Posts

12 November 2008 at 2:33am

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

Community Member, 2 Posts

13 November 2008 at 9:56pm

thx !