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.
We have nodes that have a taxonomy of colour on there, so terms are: red, green, blue etc.
We want to be able to call a different watermark on an image in the node based on the taxonomy of the node - is this possible?
For example, taxonomy of node is red, the image has watermark of file red.png
Guessing so via php but is there any snippet anyone can provide as I'm not a coder! Any help much appreciated!
Adam.
Comments
Comment #1
fietserwinThis is indeed a good candidate for a custom action as it is too specific to turn it into a full fledged image effect.
The readme.txt from the customactions module contains explanation about how to set up your PHP snippet (not sure if the 1.0 version already contains that info, so please download the dev version if you cannot find it). This should give you a start. The custom code part is up to you of course.
I guess that this answers your question. If not, feel free to reopen, further detailing where you got stuck.