Bloke / smd_thumbnail

Multiple image thumbnails of arbitrary dimensions
GNU General Public License v2.0
8 stars 4 forks source link

Tag error: Undefined variable: alt #23

Closed philwareham closed 7 years ago

philwareham commented 7 years ago

Hi Stef, I'm getting a tag error message with the following code:

<txp:images>
    <p itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
        <txp:smd_if_thumbnail type="article-832w">
            <txp:smd_thumbnail type="article-832w">
                <img itemprop="url" alt="<txp:image_info type='alt' />" src="<txp:smd_thumbnail_info item="url" />" srcset="<txp:image_url /> 2x, <txp:smd_thumbnail_info item="url" /> 1x">
            </txp:smd_thumbnail>
        <txp:else />
            <img itemprop="url" alt="<txp:image_info type='alt' />" src="<txp:image_url />">
        </txp:smd_if_thumbnail>
    </p>
</txp:images>

Tag error is: "Notice: Undefined variable: alt while parsing form blog on page blog".

Any idea why this is happening. Is it an issue? I've tried the type='alt' with both single and double quotes but that hasn't helped.

Bloke commented 7 years ago

Thanks for the report. Fixed.

philwareham commented 7 years ago

Great, any chance of a new beta release?

phiw13 commented 7 years ago

I had reported this issue months ago in the forums: https://forum.textpattern.io/viewtopic.php?pid=303721#p303721

glad to see it solved.

Bloke commented 7 years ago

@phiw13 Sorry, I missed that.