Copied to clipboard

Flag this post as spam?

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


  • Justin Spradlin 139 posts 347 karma points
    Jan 15, 2012 @ 01:46
    Justin Spradlin
    0

    Missing Macro Parameters for Client Dependency Loader macro

    Hi,

    I have been playing with the starter kit today it it looks great. I ran into an issue where none of the syles would render and many js files were not found when I set debug="false" in the web.config (to disable ClientDependencyFramework).

    I tracked it down to the fact that the macro named Client Dependency Loader was missing the three parameters. Once I created the parameters CssPaths, JsPaths, and IncludeDefaultPaths for the macro, the scripts/styles started to load properly. 

    Also, you may want to update the documentation to instruct people that while developing they can set the compliation debug="true" in the web.config to disable the CD framework. This is nice because you don't have to remember to increment the version number to see new changes and minification is disabled so it is easier to debug. 

     

    Thanks,

    Justin

  • J 150 posts 489 karma points
    Jan 17, 2012 @ 00:39
    J
    0

    Hi Justin,

    Thank you very much for your feedback. I'm working on the documentation for this feature and aim to update it in the next release.

    Regards,

    Jorge

  • Justin Spradlin 139 posts 347 karma points
    Jan 17, 2012 @ 05:34
    Justin Spradlin
    0

    Jorge,

    This behavior is also breaking the latest build for the CWS starter kit. I though you might want to know. Once I added those Macro Parameters to the [Razor] Cd Loader macro, it started rendering all the css and javascript files.

    Justin

  • J 150 posts 489 karma points
    Jan 17, 2012 @ 10:35
    J
    0

    HI Justin,

    Thanks for letting me know.

    This seems to be happening in version 4.7.1.1 as explained here http://our.umbraco.org/forum/developers/razor/27675-Dynamic-parameters-not-working-on-version-4711 and will fix it in the next release.

    I have already post it a workaround in for the CWS package in http://our.umbraco.org/projects/starter-kits/creative-website-starter-(cws)/razor-rewrite/27677-Client-Dependency-Loader-not-rendering-css-or-javascript

    Cheers,

    J

  • J 150 posts 489 karma points
    Jan 19, 2012 @ 16:17
    J
    0

    Hi Justin,

    I have just release a new version 1.0.4 which solved the issue with the missing macro parameters.

    Thanks,

    J

Please Sign in or register to post replies

Write your reply to:

Draft