The module comes with an example in includes\templates\YOUR_TEMPLATE\auto_loaders

Basically you will have to place a new file in the auto_loaders folder, this file must have the form: loader_something.php

The content of the file should look exactly like the sample file.

Conditions

Currently the module supports 2 types of condition:

  1. pages: you can decide to load the script(s) on certain pages (main_page=something).You can use array('*') for all pages
  2. call_backs: or you can call back functions, please note that class method is supported as well.

Order

You can set the order that the scripts should be loaded. Currently ZC loads css/scripts alphabetically, this may have some undesired effect. So this module helps you to decide which one should be loaded in which order.

Duplication

No need to worry about duplication, if you have more than one modules that require the same css/jscript files (and those modules use this css/javascript autoloader), then this module will make sure each file is loaded only once.

Minify

You can change Minify settings via admin→configuration→CSS/JS Loader

Browser Compatibility

To use create a new file with name: [browser-version]-whatvernamehere.[your-extension]

[browser-version] currently support these options: ie6, ie7, ff, safari, chrome

If you want to have more options (ff3 for example), then edit html_header.php file located in includes/templates/YOUR_TEMPLATE/common of the package.

[your-extension]: currently support these options: css, js

You will have to place the files in appropriate folders (js files in “jscript” folder, css files in “css” folder)

zencart/modules/css_javascript_loader/usage.txt · Last modified: 2010/07/12 22:57 by yellow1912
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0