I'm trying to build a slideshow that allows it's images to be managed from the CMS instead of some other non-CMS way.
Using this tutorial on how to create a "quotes" object:
http://doc.silverstripe.org/recipes:example_of_quotes_on_a_page
and this tutorial on object relationships:
http://doc.silverstripe.org/tutorial:5-dataobject-relationship-management
I've been able to create a very nice slideshow class that uses a ComplexTableField to retrieve a list of images.
However, I don't understand how to order my images other than the default order of creation. For each image in my ComplexTableField I've included a field in the cms to enter a number. The plan here is to use that number as a weight to order the list. I'm looking for something like "Order by $SlideOrder ASC" or whatever the equivalent might be. ($SlideOrder is the name of the field I want to order by.)
E.g. Now my table looks like this and it displays in this order:
$Image - $SlideOrder
ImageA.jpg - 3
ImageB.jpg - 1
ImageC.jpg - 2
So they display 3, 1, 2. I'm trying to get them to display 1, 2, 3.
Thanks!
Chris.b