php - Where is it best advised to include JavaScript and CSS files in Drupal? -
where best advised include javascript , css files, in case have theme , sub-theme? have same effect when use files .info file, template file, or module?
for javascript files, files being grouped called from. below order in called.
- libraries: libraries, settings, or jquery plugins
- modules: javascript files added modules
- themes: javascript files added theme (like in
.info
files)
see description $options
given in drupal_add_js().
for css files, there 3 groups too.
- system layer css files (e.g. modules/system/system.menus.css , modules/system/system.theme.css)
- css files added modules
- css files added themes
see description $options
in drupal_add_css().
Comments
Post a Comment