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.

Customising the CMS /

Select multiple articles


Reply


3 Posts   719 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, 94 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