I'm not getting something here when it comes to this variable. What I want to do is bring a global.css file that is based of Yahoo/Meyer's global css file for all pages. So I assume I do this in the .info file:
stylesheets[all][] = global.css
Thats fine and dandy.
But how about when I need to bring in the css file for say the home page only, home.css?
Suppose I want my section pages to have their own css file section.css?
Further, suppose I want to override the default section page and bring in, say a different css file, news.css for my news section?
If I do this:
stylesheets[home][] = home.css
stylesheets[section][] = section.css
stylesheets[news][] = news.css
I don't see how I am going to bring these in on a per page basis.
The $scripts variable follows along the same line. Suppose I only want a certain javascript code to be placed on a certain page? How do avoid it from being a global issue?
Comments
You have to use the API
You have to use the API instead of the .info file method.
Use drupal_add_css and drupal_add_js functions in template.php to conditionally load the files.
Need help with IE?
Learn basic XHTML and CSS first.
Get smart with web specs.
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
php
two function in template.php wich automaticly load css and js files following page path alias as : page-front.tpl.php / script-front.js / style-front.css
figureslibres.cc