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.

Customising the CMS /

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

Select multiple articles


Go to End


3 Posts   1088 Views

Avatar
bunheng

Community Member, 78 Posts

22 January 2011 at 4:37pm

Edited: 23/01/2011 5:32pm

Hi There,

I am looking a way to select multiple articles to show up on template, is there any possible way to make it happen?

Thanks
Bunheng

@Bart: Sorry for wrong typo

Avatar
bartvanirsel

Community Member, 96 Posts

23 January 2011 at 1:01am

Hi Bunheng,

I don't think Silverstripe is that advanced yet to let articles show up in a temple :)
I guess that was a typo and you meant template.

You can get a method in your Controller (DataObject::get or SiteTree::get) to get multiple Articles (pages or Dataobjects) or you can do
control children in your template file.

Hope this helps,

Best regards,

Bart

Avatar
bunheng

Community Member, 78 Posts

29 January 2011 at 2:29pm

Hi Bart,

Do you have any sample to show me. I am really new with SS.

Thanks for your kind reply
Bunheng