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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

FileManager module


Go to End


4 Posts   1309 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.