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

Ability to multi-select pages for displaying in carousel


Reply

850 Views

Avatar
heidgert

22 April 2010 at 5:34am Community Member, 16 Posts

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?