Load content-type specific CSS/JS files dynamically from your theme.
This module is super light weight.
Chances are good you have the following...
- A bunch of custom CSS (and occasional JS) code for each content type.
- Some special nodes with their own CSS and JS (home page, etc).
- You usually add all of this to your theme.
This module will load content type (and node) specific code CSS and JS files from your theme when on the appropriate pages. This code is added to the head after other assets. It will check for the existence of such files before including them in the output header. Code will be loaded whenever the node is loaded, even by a view (when in full or teaser mode). This module has no UI, it just loads files from your theme. Add files to your theme like so...
sites/all/themes/MYTHEME/css/content-types/MYTYPE.css
sites/all/themes/MYTHEME/js/content-types/MYTYPE.js
sites/all/themes/MYTHEME/css/nodes/NODEID.css
sites/all/themes/MYTHEME/js/nodes/NODEID.js*NOTE: The D6 version does not add JS by content type. Can add if someone requests it.
OTHER OPTIONS
Code per Node Full featured, editor UI, etc.
Context Add Assets Complex inclusion rules and theme independence.
CSS Injector "configurable rules"
Sweaver "change the fonts, colours without knowing CSS"
JS Injector "configurable rules"
Project information
Seeking co-maintainer(s)
Maintainers are looking for help reviewing issues.- Project categories: Content display
- Created by doublejosh on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
