alt text on image in subpage list

s1yfa

Avatar: s1yfa

2009-04-12 20:18

Hi,

For some reason when you have a subpage list, like:

<ul class="subpagesList" id="subList2">

The alt always ="". If you follow the link on the subpage list the image does have an alt text. Looking at products_default.tpl, it gets the alt this way, under <!-- BEGIN IMAGES_LIST_1 -->

alt="$aData[sDescription]"



Looking at pages_default.tpl, under <!-- BEGIN SUBPAGES_IMAGE_2 --> there is:

alt="$aDataImage[sFileDescription]"



Is this why a subpage list on a page won't show the alt text? How can I change it so it does have an alt text? I know it doesn't seem that important, but this is all that is stopping me from achieving WAI Level 1 across my whole site!

Thanks

» Quick.Cart v3.x

treewood (OpenSolution)

Avatar: treewood

2009-04-13 05:50

you must give description to image

s1yfa

Avatar: s1yfa

2009-04-13 17:53

treewood, I have given a description - the alt text appears for the image on the product's page, but not when the image is on a subpage list.

treewood (OpenSolution)

Avatar: treewood

2009-04-14 07:47

hmmm strange. maybe change sFileDescription to sDescription

s1yfa

Avatar: s1yfa

2009-04-14 10:06

treewood, that was all it took! Problem solved, thanks for your help.

Back to top
about us | contact