I want to make a carousel module. To me this means 2 DataObjects (Slide and Carousel) and a page type (CarouselPage) that will contain the Carousel.
A carousel will have a title to describe it (i.e. Pictures from Vacation) and any number of slides (I'm hoping to be able to select them from a ComplexTableField), while a slide will have a title (i.e. day 1 on the beach) and html code and/or an image.
In terms of relations, carousel:
static $has_many = array(
'MySlides' => 'Slide'
Would this be the best way to relate these two? Would it be smarter to just have a Carousel Page type and a Slides DataObject and skip the carousel DataObject? Do the slides really need a relation back to the Carousel? I'd like to hear from those more experienced.
I see these relationships working properly now. Thank you for your help, wee-man.
What I need to focus on next is changing this Carousel ModelAdmin portion of the CMS to be more user friendly for editing the different dataObjects.
Ideally, I would like to be able to select a tab on the left side (carousel or slide) and have a list similar to the site tree appear underneath. Then modify the objects on the right. Is ModelAdmin the right tool for this job, or would I be better off with a different approach?
I appreciate any advice or references that could be of help.