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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

FileUploadField


Reply


2 Posts   1424 Views

Avatar
Kasutajanimi

Community Member, 15 Posts

31 August 2009 at 6:35am

I know how to make TextFields in the CMS.
But how I can make field, which allow for file upload dialog and after uploading the adress of uploaded file will be written to DB?

Avatar
JoshuaLewis

Community Member, 76 Posts

1 September 2009 at 10:21am

Connecting an image to a page and calling it in a template.
http://doc.silverstripe.org/doku.php?id=tutorial:2-extending-a-basic-site#adding_a_staff_section

Other kinds of files.
http://doc.silverstripe.org/doku.php?id=recipies:adding-a-file-to-a-page

Some of the documentation is incomplete or old but it is fairly well organized and has lots of useful information if you look.