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

Avatar
bunheng

22 January 2011 at 4:37pm (Last edited: 23 January 2011 5:32pm), Community Member, 78 Posts

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

23 January 2011 at 1:01am Community Member, 94 Posts

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

29 January 2011 at 2:29pm Community Member, 78 Posts

Hi Bart,

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

Thanks for your kind reply
Bunheng