We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Uploading a JavaScript file, editing a JavaScript file

How Do I?

bfsog's avatar
bfsog
2 posts
about 11 years ago
bfsog's avatar bfsog

My experience of Expression Engine is only 1 day so forgive me if I am missing something obvious.

There is a template file which is included in all pages, called JavaScript. In there it contains references to all of the JavaScript .js files the site requires (jquery, bootstrap stuff, and custom JS).

The URL to one of these JavaScript files is:

/assets/js/customfile.js

My question: Can I edit the file via Expression Engine? Or do I have to upload the file with changes, and if so can I do it from within EE or do I have to FTP?

Thanks, Andrew

       
Christian Sweatt's avatar
Christian Sweatt
281 posts
about 11 years ago
Christian Sweatt's avatar Christian Sweatt

Hi Andrew,

You can certainly define a new template as a JS type template, place your script in it, then call it in your HTML templates. I’ve found that it’s easier to FTP the JS files to your server, and then use the regular HTML tags to call the files.

       
bfsog's avatar
bfsog
2 posts
about 11 years ago
bfsog's avatar bfsog

Okay thanks Christian. I will have to contact the previous developers for FTP details. Cheers

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.