Page 1 of 1

Category Thumbail Image ALT value is wrong

Posted: 15 Nov 2011, 15:05
by tcherno
The thumbnail alt value is not passed correctly in
com_phocagallery/views/categories/tmpl/default_catimg.php
line 24:

Code: Select all

echo JHTML::_( 'image', $this->categories[$i]->linkthumbnailpath, array('style' => 'border:0'));
should be

Code: Select all

echo JHTML::_( 'image', $this->categories[$i]->linkthumbnailpath, str_replace('»','-',$this->categories[$i]->title),array('style' => 'border:0'));
The second parameter is the alt value not the attribute list.

The same problem occurs in the following files also:
com_phocagallery/views/categories/tmpl/default_catimgdesc.php
com_phocagallery/views/categories/tmpl/default_catimgdetail.php
com_phocagallery/views/categories/tmpl/default_catimgdetail_float.php
com_phocagallery/views/categories/tmpl/default_custom.php

Re: Category Thumbail Image ALT value is wrong

Posted: 18 Nov 2011, 00:39
by Jan
Hi, thank you for this info. I will take a look at it for next version (seems like this was caused by migration from image.site to image)

Jan

Re: Category Thumbail Image ALT value is wrong

Posted: 31 Dec 2011, 14:58
by Jan
Fixed in 3.1.2