how to
matslats - November 13, 2009 - 04:57
| Project: | Css Dry |
| Version: | 6.x-1.0-beta1 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I don't see any indication of how to use this module.
It doesn't implement a single Drupal hook.
Is it a command line tool?
Am I missing something obvious? Hope so.

#1
As of the October 21 Beta 1 and October 22 dev release, here's what you need to do:
if (module_exists('cssdry')) {drupal_add_css(cssdry_stylesheet(drupal_get_path('theme', 'a_theme') .'my_css.css'), 'theme');
}
and replace "my_css.css" with the proper css path/filename. If you have multiple stylesheets, you can add the rest with the CSS @import declaration in your main CSS file.
Keep in mind that this is really early stage documentation given the active development of this module. The module maintainers are also working on a way to add the stylesheets via the info file (#611640: Any plans to add files from info files?) so this maybe out of date very soon.
Rene
#2
Thanks for the help in the issue queue Rene. I've added a duplicate link to the gist with the full example so that people won't miss it as easily.
Cheers
/Hugo
#3
Small Revision to initial documentation
if (module_exists('cssdry')) {<br/> drupal_add_css(cssdry_stylesheet(drupal_get_path('theme', 'your_theme') .'my_css.css'), 'theme');<br/>}and replace "my_css.css" and "your_theme" with the proper css path/filename and theme name, respectively. If you have multiple stylesheets, you can add the rest with the CSS @import declaration in your main CSS file.
Keep in mind that this is really early stage documentation given the active development of this module. The module maintainers are also working on a way to add the stylesheets via the info file (#611640: Any plans to add files from info files?) so this maybe out of date very soon.
Rene
#4
Stylesheets may now be added from info files just like the current stylesheets are.
For example, as of beta2, the following will work:
cssdry[all][] = style.css#5
#6
New instructions for the Beta 2 release.
cssdry[all][] = defaults.cssif (module_exists('cssdry')) {drupal_add_css(cssdry_stylesheet(drupal_get_path('theme', 'a_theme') .'my_css.css'), 'theme');
}
and replace "my_css.css" with the proper css path/filename. If you have multiple stylesheets, you can add the rest with the CSS @import declaration in your main CSS file.
We highly recommend using the info file method as much as possible, especially since it supports nested themes (ie base theme with one or more sub-themes).
Enjoy!
#7
Automatically closed -- issue fixed for 2 weeks with no activity.