Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Moran 285 posts 934 karma points
    Nov 26, 2012 @ 07:14
    Moran
    0

    Adding js files to umbraco

    When I create a new site with umbraco I am usualy use a template for the site design, usualy those templates have some js file in in order to create a dynamic menu or gallery or some other stuff.

    What is the best way to include those js files? should I just leave them in the master page or put them somewhere else?

    Thanks

  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    Nov 26, 2012 @ 08:28
    Chriztian Steinmeier
    100

    Hi Moran,

    I put them in the /scripts/ folder and reference them from the template(s).

    Some use the ClientDependency Framework to deliver cached and minified resources.

    Umbraco really lets you do whatever you're used to, or whatever suits the given project.

    /Chriztian

  • Moran 285 posts 934 karma points
    Nov 26, 2012 @ 08:37
    Moran
    0

    Thank you
    By the way I saw that all the script files are referenced in the general.js file, can I put them there if I want? Or it's better not to temper with this file?

Please Sign in or register to post replies

Write your reply to:

Draft