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.

Archive /

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

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

2 ArticleHolder on one Page


Go to End


3 Posts   1542 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, 791 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 !