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

fietserwin’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Active » Closed (works as designed)

This 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.