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

Javascript files in Assets folder


Reply

5 Posts   1536 Views

Avatar
micahsheets

14 January 2009 at 8:12am Community Member, 164 Posts

Why are there three javascript files in the assets folder? I am using the files from trunk. I would like to only have asset files in my assets folder so it doesn't confuse the end user. If someone deletes those files sometimes they get put back automatically or the admin site never loads after login.

Avatar
Hamish

14 January 2009 at 10:22am Community Member, 712 Posts

These are created by the new javascript combiner in Sapphire. Note sure why it was decided to put them in the assets folder though - it's something that was raised in the developer group and should be fixed. Try the /branches/2.3 version and see if they still appear.

Avatar
klikhier

14 May 2009 at 6:37pm Community Member, 150 Posts

I'm using SS 2.3.1 and have the same issue: base.js, cmsmain.js, error-404.html and leftandmain.js are located in the 'assets'-folder. Can I simply remove these files (don't think so). Is it possible to move these files to another folder. Help is appreciated as this is confusing to end-users.

Many thanks in advance!

Avatar
pingu

16 May 2009 at 3:03pm Community Member, 75 Posts

Hi,

Is there a resolution to this??

Avatar
Willr

17 May 2009 at 11:56am Forum Moderator, 5511 Posts

...was decided to put them in the assets folder though

Because assets is the only folder we require to be writable. Since those files are generated by the code, PHP needs write permission to where ever it gets written to - assets was the logically place as we already require that to be writable.

Can I simply remove these files (don't think so)

No they will just be recreated next time you run it. The 404 page is generated as a static html page so it can be thrown without hitting the database

Is there a resolution to this??

You can if you need disable the combining of files by setting Requirements::set_combined_files_enabled(false); in your config file but the 404 page will still be generated in this folder