Sunday, 15 April 2012

jquery - Orchard CMS - .AtHead() nor Script.Head() Not calling javascript files in Header -



jquery - Orchard CMS - .AtHead() nor Script.Head() Not calling javascript files in Header -

i still new orchard cms , trying several javascript files load in header. have tried using both .athead() , script.head() no success. files called in footer of site. i'm not sure doing wrong. here illustration of how have formatted code:

@{ script.require("jquery").athead(); script.include("/themes/mytheme/scripts/jquery.collapser.js").athead(); }

as as:

@using (script.head()) { script.require("jquery"); script.include("/themes/mytheme/scripts/jquery.collapser.js"); }

the calls these files located in both layout.cshtml , headscript.cshtml. have tried modifying both no luck. using .athead() results in file not beingness called @ all. using @using (script.head()) files show in footer. working theme else designed , not sure why beingness called in both locations.

any help can provide appreciated.

javascript jquery orchardcms orchardcms-1.8

No comments:

Post a Comment