5099 Posts in 1519 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 855 Views |
-
want to upload as many as Images

30 April 2011 at 10:49am
I want to create a tab at CMS side that admin can upload as many as image file he wants to
Are there any tutorial I can follow?How can I set up db?, relationship??
static $db = array();
static $has_one = array();
static $has_many = array();
also this part
function getCMSFields() {
$fields = parent::getCMSFields();$fields->addFieldToTab("Root.Content.UploadImage", new ImageField('img', 'Image Upload'));
return $fields;
}
} -
Re: want to upload as many as Images

30 April 2011 at 7:41pm
You would need to setup a has many relationship. To add an undefined number of images you could try the Has many file manager (http://www.silverstripe.org/has-many-file-manager-module/) not sure if that works with the latest version though. You could also take some ideas from this tutorial - http://deadlytechnology.com/silverstripe/silverstripe-image-gallery/
-
Re: want to upload as many as Images

3 May 2011 at 11:01pm
This is very nice too!
http://www.leftandmain.com/silverstripe-modules/2010/08/26/uploadify/ -
Re: want to upload as many as Images

5 May 2011 at 10:56pm
hi leafchild
I'm currently working on something that sounds similar, namely a gallery containing photographs (which themselves contain an Image file). I've added a bulk upload tab which is working other than the left hand menu not updating. Still work in progress so please only install on a test site in the first instance
https://github.com/gordonbanderson/Silverstripe-Translatable-Gallery/
Regards
Gordon
| 855 Views | ||
|
Page:
1
|
Go to Top |



