Zen Cart Logo
Forums / All Other Contributions/Addons / Adding JQuery to all Manufacturers pages using js_css_autoloader

Adding JQuery to all Manufacturers pages using js_css_autoloader

Views: 688

Results 1 to 1 of 1
10 Mar 2014, 6:09 PM
#1
randyrand avatar

randyrand

New Zenner

Join Date:
Mar 2010
Posts:
23
Plugin Contributions:
0

Adding JQuery to all Manufacturers pages using js_css_autoloader

Hi Zenners!

I want to add some jQuery code to my Manufacturers pages using a loader file in the js-auto_loaders directory in my template directory. I've got it working fine for some pages but I can't figure out how to refer to all my manufacturers pages in the initial array.

Here's what I've got working for the other pages:

$loaders[] = array('conditions' => array('pages' => array('index_category', 'advanced_search_result','best_sellers','products_new','specials')),

I've tried all permutations of manufacturers in this list, including 'index&manufacturers_id=', 'index&manufacturers_id=*', etc.

I could just use '*' to load this bit of script on every page of the site, but I'd rather be able to limit it to a few pages in order to reduce conflicts between the different versions of JQuery that some of the plugins on my site require.

Thanks in advance. :smile: