Page 1 of 1
Accessibility
Posted: 26 May 2011, 21:59
by luisasasi
Phoca Gallery is very beautiful.
I did three galleries of images.
The image with the "back" arrow doesn't have ALT tag. You can put it?
Where?
I think these are lines of code, but I don't know how to correct.
Code: Select all
.' title="'.JText::_( 'Back to category' ).'">'
. JHTML::_('image', 'components/com_phocagallery/assets/images/icon-up-images.' . $tmpl['formaticon'], JText::_( 'Back to category' )).'</a></div>';
Can you help me?
Re: Accessibility
Posted: 27 May 2011, 15:30
by Jan
Hi, which version you are using?
The: JText::_( 'Back to category') should be the the ALT
Jan
Re: Accessibility
Posted: 28 May 2011, 01:41
by luisasasi
I am using com_phocagallery_v2.7.8.
The: JText::_( 'Back to category') should be the the ALT
The accessibility validator (WAVE) where there is arrow "'Back to category" says:
ERROR: Linked image missing ATL text
Can you help me? In Italy the sites of the schools must pass accessibility validation test.
Phoca Gallery is very nice, but if I cannot resolve the error, I can't use it.
Thanks, I hope your help. I don't know Java script and alone I can't correct
Re: Accessibility
Posted: 01 Jun 2011, 10:47
by Jan
Hi, the problem is, the ALT is there:
see e.g.:
https://www.phoca.cz/joomlademo/category/1-barcelona
Code: Select all
<a href="/joomlademo/"><img src="/joomlademo/components/com_phocagallery/assets/images/icon-up-images.png" alt="Category List" style="border: 0pt none;"></a>
the alt is "Category List"
See the joomla framework:
Code: Select all
public static function image($file, $alt, $attribs = null, $relative = false, $path_only = false)
The second attribute is $alt, like here implemented:
Code: Select all
.' title="'.JText::_( 'Back to category' ).'">'
. JHTML::_('image', 'components/com_phocagallery/assets/images/icon-up-images.' . $tmpl['formaticon'], JText::_( 'Back to category' )).'</a></div>';
Jan