Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
it can but style sheets cascade with each other (thus the name) so you'd have to override each specific property which is of course a beating. I would like the option of not including the drupal.css stylesheet altogether.
saving a blank file would work, I usually hack it out of includes/common.inc (drupal_get_html_head).
A cleaner solution would be to overload stylesheet_import in your theme (declare %themename%_stylesheet_import() in your smartytemplate.php file) and conditionally filter it out there.
this should not go in smarty.engine but in your theme-specific smartytemplate.php -- prefixed with the name of your theme. i.e. function bluemarine_smarty_stylesheet_import() { ...
Comments
Can you be a bit more
Can you be a bit more specific? I'm pretty sure CSS in your theme's style.css file overrides any default stuff.
well
it can but style sheets cascade with each other (thus the name) so you'd have to override each specific property which is of course a beating. I would like the option of not including the drupal.css stylesheet altogether.
oh i see. then why not just
oh i see. then why not just save a blank file in place of drupal.css?
saving a blank file would
saving a blank file would work, I usually hack it out of includes/common.inc (drupal_get_html_head).
A cleaner solution would be to overload stylesheet_import in your theme (declare %themename%_stylesheet_import() in your smartytemplate.php file) and conditionally filter it out there.
Searching drupal.org for
Searching drupal.org for 'drupal.css' I found
http://drupal.org/node/23215 and
http://drupal.org/node/23217
I guess you only have to add the proposed function to smarty.engine replacing 'phptemplate' with 'smarty'.
this should not go in
this should not go in smarty.engine but in your theme-specific smartytemplate.php -- prefixed with the name of your theme. i.e.
function bluemarine_smarty_stylesheet_import() { ...