I would like to perform a check to see if the value for a TV that is an image exists and if it doesn’t then display a "No Image" message.
If it does contain something then check to see if the orientation of the photo is landscape or portrait. If it’s landscape display the proper HTML if it’s portrait display proper HTML.
Here’s my code:
[+product_image:is=``:then=`<img class="photofade" src="assets/templates/vivero/images/noimage.jpg" alt="image coming soon">`:else=`[*photoorientation:is=`landscape`:then=`<img class="photofade" src="[+product_image+]" alt="[+pagetitle+]" width="200" height="118">`:else=`<img class="photofade" src="[+product_image+]" alt="[+pagetitle+]" width="184" height="278">`*]`+]
This almost works as you can see here:
http://www.viverolavida.com/palms.html
However, it is display all of the images in portrait mode (no idea why). Can anyone crack this one?
******** FIXED NOW ***********
I’m thinking this was a caching issue as it now working!!!!