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

Ability to multi-select pages for displaying in carousel


Go to End


1618 Views

Avatar
heidgert

Community Member, 16 Posts

22 April 2010 at 5:34am

I'm building a jQuery carousel that will show slides with an image and text on my site. No problem there.

I would like to make the carousel as dynamic and as easy to change as possible. I have the content and pictures stored within my pages on various locations on the site already so I don't want to duplicate the contents.

I want to set up a has_many relation on my page class that refers to SiteTree objects (let's call it CarouselPages). This isn't a problem either.

What I want to have is a control in the CMS where I can point to all my pages that I would like to include in my carousel and that this selection should be saved to my CarouselPages.

I have been considering the HasManyComplexTableField but can also recall having seen a variant of the TreeDropdownField that could display checkboxes.

Has anyone else done something similar? What's your opinion?