Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I wanted to know if there was any future plans to integrate CSS injector with rules. More specifically, I wanted to know if there was any option for a user to create a rule that involves changing the current CSS of a page.
Any feedback would be more than appreciated,
Thanks
T
Comments
Comment #1
rfayThat's a great idea, IMO.
This module is pretty minimally maintained though, so I'm quite sure there are no "plans". If you have a patch, it will be considered. Features will need to go into both 6 and 7 though.
Comment #2
Hadi Farnoud CreditAttribution: Hadi Farnoud commentedwow, that's a great feature! in fact exactly what I needed, injecting css with rules.
+1
Comment #3
Tafa CreditAttribution: Tafa commentednot sure i can contribute to a patch at the moment. But my workaround was to create a view and clone it so that i can assign different class. Then, I used rules as usual to trigger the view as required.
Comment #4
skobe CreditAttribution: skobe commentedsubscribe
Comment #5
squarecandy CreditAttribution: squarecandy commentedsubscribe
Comment #6
plato1123 CreditAttribution: plato1123 commentedI'm just in the process of setting it up but it looks like Rules can tie in to Context Rules which is an add on for Context that integrates with CSS injector.