david.hirst wrote:The image which you can specify to be displayed beside the attachment link on the public website creates an html img tag where the img src value is also specified for the alt text tag. This is a bit peculiar as it should really be alternate text to describe the image and not a URL! The plugin doesn't appear to have a specific alt txt field where you can specify it. If the plugin has to make something up it would be better to either use an empty string or base it on the name of the attachment rather than the URL of the image.
e.g. for one of my attachments this is the code generated:
<img src="https://www.mysite.com/store/content/images/thumbs/0009249.png" alt="https://www.mysite.com/store/content/images/thumbs/0009249.png">
Hi,
Thanks for pointing out this. We just fix it in the plugin.
If you do not want to wait for the deploy, you can easily fix it by yourself.
Go to this file:
\Plugins\SevenSpikes.Nop.Plugins.Attachments\Views\ProductAttachment\_Attacments.cshtml and find this row:
<img src="@attachment.ImageUrl" alt="@attachment.ImageUrl" />
Edit it like this:
<img src="@attachment.ImageUrl" alt="@attachment.Name" />
And this will show the name of the attachment as a alternative text.
P.S. Please let us know which version of nop you are using.