Hi,
I've been building a few sites with SS3 recently and it's all going fine, apart from one thing.
a page which 'has many' images...
-------
public static $has_many = array(
'HolidayHomeImages' => 'HolidayHomeImage'
);
--------
class HolidayHomeImage extends DataObject {
public static $has_one = array(
'Image' => 'Image',
'HolidayHomePage' => 'HolidayHomePage'
);
}
I have to create create 'dataobject' separately, clicking 'add', then saving, then attaching image...
needles to say it's time consuming compared to selecting a whole load of images and uploading all together.
I notice in the assets area it's possible, so there must be a way of doing it on my pages too?
Also, when i'm on the page to edit the dataobject details, I get a dropdown to choose the 'HolidayHomePage' eg the has_many relationship. It gets set automatically, but users get confused why it's there. Is there any way to hide it?
Cheers