Page 1 of 1

Custom Javascript/CSS file includes

Posted: Wed 27. Aug 2008, 00:49
by mshaker
Is there a way to include custom javascript (in addition to frontend.js) and/or CSS (in addition to frontend.css). I'd like to have a different .js file for each category when needed.

Re: Custom Javascript/CSS file includes

Posted: Wed 27. Aug 2008, 06:58
by juergen
Hey, yes, in the NEWER Versions from the google code branch:


from Oliver:

Code: Select all

       /* Load my special Mootools script */
       $block['custom_htmlhead']['mootools.js']   = '  ';

       /* Load Mootools in newer releases */
       initMootools();

       /* Load My custom JavaScript */
       $block['custom_htmlhead']['my.js']      = '  ';
      
       /* Load some other positions */
       $block['custom_htmlhead']['favicon1']      = '  ';
       $block['custom_htmlhead']['favicon2']      = '  ';

       /* IE <=6 Style Hack */
       $block['custom_htmlhead']['IEhack']  = '  ';     

       /* Hm I want to overwrite some default CSS */
       $block['custom_htmlhead']['mycss']  = '  ';

Re: Custom Javascript/CSS file includes

Posted: Wed 27. Aug 2008, 08:43
by Oliver Georgi

Re: Custom Javascript/CSS file includes

Posted: Wed 27. Aug 2008, 09:04
by Jensensen
An answer which has a closer relation to the question can be found here:
[x]