Where is alt of image in Phoca?

Phoca Gallery - image gallery extension
supergone
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 21 Feb 2012, 06:01

Where is alt of image in Phoca?

Post by supergone »

Hello, I has some troubles.
There is no alt of image in version of Phoca 3.1.5. It must be generate from title, but alt is empty (alt=' ').
In more erlier versions for Joomla 1.5 alt was generated properly, all settings are the same. :evil:
This is link to my galery http://svadba.mari-matte.ru/category/1.html
What can i do to solve a problem?
Thank you
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Where is alt of image in Phoca?

Post by Jan »

Hi, you can set in parameters, which value will be displayed in ALT attribute, see:
https://www.phoca.cz/documents/2-phoca-g ... parameters

Jan
If you find Phoca extensions useful, please support the project
supergone
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 21 Feb 2012, 06:01

Re: Where is alt of image in Phoca?

Post by supergone »

Jan, I set in alt parametr value "title" but it does not work. Alt is empty. May it be bug of Phoca 3.1.5?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Where is alt of image in Phoca?

Post by Jan »

Hi, some image methods cannot use alt because of possible conflict - try to enable modal box to test, if you get the values.

Jan
If you find Phoca extensions useful, please support the project
pixelhexe
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 07 Mar 2012, 13:49

Re: Where is alt of image in Phoca?

Post by pixelhexe »

I had the same problem - I am using PhocaGallery 3.1.1 and slimbox and solved it with template override like this:

/templates/[your-templatename]/html/com_phocagallery/category/default_images.php

row 72
echo JHTML::_( 'image.site', $value->linkthumbnailpath, '', '', '', $value->oimgalt, $value->ooverlibclass );

changed to
echo JHTML::_( 'image.site', $value->linkthumbnailpath, '', '', '', $value->altvalue, $value->ooverlibclass );

For me it's ok - but it seems to be a bug?

ansa
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Where is alt of image in Phoca?

Post by Jan »

Hi, this is not a bug, some methods cannot use alt because of conficting with title with is then used in popup :-(

Jan
If you find Phoca extensions useful, please support the project
Post Reply