Folks, I’m using the imgsizer plugin in an art web site I’m building. There is a channel called paintings for storing info about paintings. One of the fields (checkbox) is called “sold” with a value of ‘sold’ for paintings that are no longer available for sale.
What I’m trying to do is to use a conditional statement like this:
{if sold == "sold"}SOLD{/if}to display the word “sold” next to painting thumbnails of sold paintings.
I’m using the imgsizer plugin to generate 100x100px thumbnails of all the painting images. But when I do that, the conditional statement I’ve used above simply doesn’t work. It produces no error; just a blank. Very weird.
So this code works fine:
{title}
Medium: {painting_medium}
Size: {painting_size}
{if sold == "sold"}SOLD{/if}
But when I toss in the imgsizer tag like this:
{exp:imgsizer:size src="{painting_pic}" width="100" height="100" alt="{title}"}
{title}
Medium: {painting_medium}
Size: {painting_size}
{if sold == "sold"}SOLD{/if}
It doesn’t work. It shows the painting thumbnail, the title, medium, and size, but for sold paintings, it just produces blank output in the conditional statement.
Any idea what could be causing this? I’ve tried using parse=“inward” in the tag but that doesn’t do it either.