Copied to clipboard

Flag this post as spam?

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


  • Moran 277 posts 885 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 2726 posts 8320 karma points MVP 4x 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 277 posts 885 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?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies