Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Javascript Best Practices View modes: 
User avatar
Member
Member
ZachW - 12/1/2011 3:24:00 PM
   
Javascript Best Practices
If I want to include entire js files in my website, where's the best place to keep them? I was hoping to find a section in Development like the CSS StyleSheets module where I can manage these files. I noticed a lot of people use the CMS Scripts directory. Will keeping custom files here effect me if I later decide to upgrade my Kentico installation?

User avatar
Kentico Support
Kentico Support
kentico_janh - 12/2/2011 1:58:09 AM
   
RE:Javascript Best Practices
Hello Zach,

If you want to be sure, that your javascript files will not affect any upgrade process, just create your own folder under the root directory like ~/MyJavaScripts and place your javascript files there.

Best regards,
Jan Hermann

User avatar
Member
Member
ZachW - 12/6/2011 9:48:03 AM
   
RE:Javascript Best Practices
Is there a way to add custom folders to my import/export procedure?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/6/2011 11:04:55 PM
   
RE:Javascript Best Practices
Hi,

You can follow this folder structure and your custom folders, if placed in right location, will be automatically added the to export package.

Best regards,
Juraj Ondrus