Hi there,
In my CMS I want to have a TreeMultiSelectField type dropdown which lists all of the images in the Assets folder & subfolders (in the same way as when you go to add an image via the WYSIWYG editor).
The user should be able to select / check multiple images, which I would then use to display a slideshow of images within the site.
Can anyone point me in the right direction for this? I've tried a few things but its not working at all => I don't know if you can "call" assets in the same way as you call the site tree, e.g.:
public static $many_many = array(
"ChoosePages" => "SiteTree"
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.PageList', new TreeMultiSelectField('ChoosePages', 'Select pages to list', 'SiteTree'), '');
return $fields;
}
Many thanks,
Linsey