control over image tags in templates for SEO

Request and discuss enhancements to ShopSite

control over image tags in templates for SEO

Postby psldesigns » Sat Mar 31, 2012 9:29 am

For good SEO, an image should have an alt tag, a title tag and possibly coming soon, captions. This can be accomplished in a PRODUCT template by having the tags you want appended to to your image tag using a custom PRODUCT.fieldX. But this works ONLY IF all your images are in the same directory:
Code: Select all
<img src="[-- OUTPUT_DIRECTORY_URL --]/media/ss_size1/[-- IMAGE PRODUCT.Graphic --]" alt="[--PRODUCT.Field11--]" border="0">

On very large sites subdirectories are often used. It would be helpful to be able to add on a custom PRODUCT.FieldX to an image tag that includes the file path, name and image directory based on what is in the product database.

Page templates are even more difficult. [-- PAGE.LinkGraphic --] will give you the correct resized image with an alt tag equal to page name, but there is no way to customize or add on more info like a title tag. This:
Code: Select all
<img src="[-- OUTPUT_DIRECTORY_URL --]/[-- IMAGE PAGE.LinkGraphic --]" alt="[-- PAGE.LinkName --]" border="0">

only works IF your images are all in the media directory and you are using the original size. There is no way to add the size you want of the image.

What would be very helpful for SEO would be the ability to call the image in a page OR product template and add on to it custom information. I am a webdesigner with approximately 30 clients that would use this feature.

Thanks for your consideration of this feature.
psldesigns
 
Posts: 116
Joined: Wed Aug 16, 2006 7:06 pm
Location: Michigan

Re: control over image tags in templates for SEO

Postby Jim » Thu Apr 26, 2012 12:59 pm

After you upload images into ShopSite you can go to Images > Select the image > and click Edit Images. In the second section of the page <img> Tag Attributes are fields for Alt tex, size, border, spacing and Other attributes. In the other attributes you can add caption="my caption" or any other attributes you want for the image.
Then when ShopSite displays the image using one of the template tags such as [-- page.graphic --] it will display all the information that you entered for the image.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: control over image tags in templates for SEO

Postby psldesigns » Thu Apr 26, 2012 1:38 pm

This would be OK if it could be uploaded, but with one particular site I have over 5,000 images and wouldn't be able to do this one by one. Need a way to get the information there without having to edit each image individually.

Thanks!
psldesigns
 
Posts: 116
Joined: Wed Aug 16, 2006 7:06 pm
Location: Michigan


Return to Enhancement Requests

Who is online

Users browsing this forum: Google [Bot] and 34 guests