Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

FileManager module


Go to End


4 Posts   1113 Views

Avatar
snaip

Community Member, 181 Posts

5 July 2009 at 9:39pm

hi

can you tell me how to modify FileManager module to upload files form the server ?
at now it can only uploads files from disc, and it is not very usefull when i want to upload the same image on the different pages, because than i have 2 or more copies of the original picture and more copies of CroppedImage

Avatar
snaip

Community Member, 181 Posts

6 July 2009 at 4:07pm

or how to implement ImageField ?
i tried this

    	public function getMyCMSFields() {
        	if($this->owner instanceof Image) {
        	  	return new FieldSet(
				new ImageField('Picture','Select:', $this->owner->ID)
			);     
		}
	}

but i get "You can add images once you have saved for the first time."

Avatar
snaip

Community Member, 181 Posts

9 July 2009 at 8:37am

??

Avatar
UncleCheese

Forum Moderator, 4102 Posts

9 July 2009 at 8:42am

You might want to look at the DataObjectManager module if you're having trouble with FileManager.