I would like to add a CSS file based on context.

sounds like what the css injector reaction would do; but een though there is code here - it doesn't seem to show up for D7 version.

Comments

TimelessDomain’s picture

wbobeirne’s picture

I wrote a patch for css injector a month ago that makes it work. http://drupal.org/node/1132842

EDIT: Upon further inspection of the issue linked above, I realize my patch fixes the same thing that the original poster fixes, but then runs in to a new issue. I can't run in to the issue he does, though.

chaseontheweb’s picture

Is this any different than the functionality that context_addassets provides? http://drupal.org/project/context_addassets

tekante’s picture

Status: Active » Fixed

This should now be fixed with the commit for issue #1132842: fatal error in plugin context_reaction_css_injector.inc, note that you'll need the css_injector module installed and may need to clear cache after doing so to have the plugin show up.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.