Hello,
I am looking for a method to produce a similar result as the Find and Replace Plugin, but replace with image.
For example, I have a table listing a product’s features, and I would like to replace the word ‘yes’ with a ‘tick’ image… and similarly ‘no’, with a ‘cross’ image.
Does anyone know of a plugin or extension that may do this ?
You can just use conditionals like if your custom field was named “get_pix”…
{if get_pix == "yes"}{tick.jpg{if:elseif get_pix =="no"}cross.jpg{/if}Thanks smartpill. This is perfect advice… 😊
As I am working with a multi-lingual site, my if conditionals were getting rather long so I ended up doing a similar method where I created an image based on the image custom_field
{custom_image_field}.png.
As always, I was thinking way to hard, and not laterally enough, so thank you for your support 😊
Thanks smartpill. This is perfect advice… 😊 As I am working with a multi-lingual site, my if conditionals were getting rather long so I ended up doing a similar method where I created an image based on the image custom_field. As always, I was thinking way to hard, and not laterally enough, so thank you for your support 😊{custom_image_field}.png
No problem, we’ve all been there 😉 . That’s a good, clean solution too as long as the field is never blank.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.