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

Can I upload a file in site content editor without having to use Files and Images tab?


12 Posts   1575 Views


24 March 2010 at 10:58am (Last edited: 24 March 2010 11:00am), Community Member, 76 Posts

Add another closing bracket } just before the line with 'class Page_Controller extends Content_Controller {'.
$has_one has also been declared twice. Remove the empty copy and rebuild the database by opening in your browser.

If you really do have no experience with PHP then I think you should consider how much time and effort you can afford to put into learning it and whether Silverstipe is the right CMS for you to be using right now.
This is because nearly all of the setup and configuration for a site is done with PHP files instead of a graphical control panel. That makes the system difficult to jump into without at least knowing the basics. The upside, though, is that once someone does know what they're doing they have more flexibility and power.


25 March 2010 at 9:05am Community Member, 13 Posts

That didn't work either

I understand the comment about PHP, but I am so close to this being handed over to the village community I would loathe to have to start again simply because this "simple" hack does not work...


26 March 2010 at 7:14pm Community Member, 76 Posts

I'm not sure whats going wrong. I've done a test on my local server and it works just fine after I run dev/build. Here's my code : [url][/url]

Are your building this on a hosted server instead of a local server (XAMPP, WAMPP, etc)?
If so you might try setting your install of Silverstripe to dev mode. [url][/url]
This should cause errors to be printed to your browser. Just don't leave it in dev mode any longer than you have to.


26 March 2010 at 8:40pm Community Member, 13 Posts

I finally managed to get it to run with the extra code suggested... but it appears to make no difference at all to the insert link dialogue, which is where I was expecting to see changes, so am now confused as to what difference this change is supposed to have made.

Really appreciate all the help so far!