I have two image styles with an overlay difference between them. I would like to use rules to set which image style should be used. Is there any way to do this with rules today?

Comments

bharata’s picture

Hey, cocoshogo , did you solve this? I may want to try your solution.

I am working on the same thing.

I am currently using two modules to help with this: Field Formatter Conditions and it's dependancyField Formatter Settings.

A quick video demonstrating the changing of an image style based on a rule is here: http://realize.be/introducing-field-formatter-conditions-drupal

All looks good to me, but being new to Drupal, setting up the rule is tripping me up. Having turned on rules log messages I can see this error "Unable to get variable node, it is not defined."

Any and all help with this will be gratefully accepted...

Thanks!!

mttjn’s picture

Issue summary: View changes

Hi bharata, did you succeed in making this work?

tr’s picture

Status: Active » Fixed

Field Formatter Conditions, which was suggested in #1, seems to do exactly what you need. Help in using that module should be obtained in the issue queue for that module.

tr’s picture

Status: Fixed » Closed (fixed)