Image attributes

Request and discuss enhancements to ShopSite

Image attributes

Postby nolan » Mon Apr 26, 2010 11:13 am

I just discovered what I think is the appropriate way to use Shopsite tags with my custom template to automate the alt tags for my images. I did it like this:

Code: Select all
<img src="media/[-- IMAGE PRODUCT.Graphic --]" alt="Photo of [-- PRODUCT.Name --]" />


This will keep me from having to go into the back office and manually enter an alt tag for every single image on the site, one by one.

However, using the [-- IMAGE PRODUCT.Graphic --] tag now creates a new problem. It doesn't bring in the image size attributes as it does when I use the [-- PRODUCT.Graphic Remove_HTML --].

So my request (unless this is something I'm overlooking), is for there to be a new Shopsite tag implemented that would include only the image file name and size attributes.

As a side note, I realize that browsers will still display the images without the size attributes, but this will cause an error when validating the page, and may cause browsers to load the page a little slower since they have to calculate the size of each image.

Thank you.
nolan
 
Posts: 6
Joined: Tue Mar 27, 2007 12:55 pm
Location: MO

Postby nolan » Fri Apr 30, 2010 8:42 am

Just ran into a new related issue. I would like to do the same technique with page link graphics that I did for product graphics as described above. But there doesn't seem to be any way to do this that I can find. I figured there would be a similar tag for page link graphics such as [-- IMAGE PAGE.Graphic --]. But as I'm sure you know that tag is for the page banner graphic.

Am I overlooking something or is there simply no way to use tags to automate the image alt tag process for page link graphics? If not, then is the only way I can do this is to go into the back office and one by one change the alt tag field manually?

Thank you.
nolan
 
Posts: 6
Joined: Tue Mar 27, 2007 12:55 pm
Location: MO


Return to Enhancement Requests

Who is online

Users browsing this forum: No registered users and 32 guests