Empty alt in lightox

Phoca Gallery - image gallery extension
schlogo
Phoca Enthusiast
Phoca Enthusiast
Posts: 51
Joined: 03 Sep 2008, 16:45
Contact:

Empty alt in lightox

Post by schlogo »

Hello

I ve been looking at the source code of my website s gallery, it appears that large images opened in lightboxes avec an empty alt, even if they have a title and a description ... Would someone has an idea on how to fix that ? I d also like to add the title attribute

Tks

Code: Select all

<img alt="" src="/images/phocagallery/hockey/thumbs/phoca_thumb_l_marc-andre-fleury.jpg"/>
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Empty alt in lightox

Post by Jan »

Hi, which method of detail view do you use?
If you find Phoca extensions useful, please support the project
schlogo
Phoca Enthusiast
Phoca Enthusiast
Posts: 51
Joined: 03 Sep 2008, 16:45
Contact:

Re: Empty alt in lightox

Post by schlogo »

hello

i am using the modal box, i ve tested it with the other options, still empty :-/

tks for your help
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Empty alt in lightox

Post by Jan »

Hi, this you can change it it:

\components\com_phocagallery\views\detail\tmpl\default.php
If you find Phoca extensions useful, please support the project
schlogo
Phoca Enthusiast
Phoca Enthusiast
Posts: 51
Joined: 03 Sep 2008, 16:45
Contact:

Re: Empty alt in lightox

Post by schlogo »

hello

tks for your answer, i ve been looking into this file already, here s what i find , i see no reference to the alt

Code: Select all

<div id="image-box" style="width:<?php echo $this->item->realimagewidth;?>px;"><a  href="#" onclick="<?php echo $this->tmpl['detailwindowclose']; ?>"><?php echo JHTML::_( 'image.site', $this->item->linkthumbnailpath, ''); ?></a><?php
			
			$titleDesc = '';
			if ($this->tmpl['displaytitleindescription'] == 1) {
				$titleDesc .= $this->item->title;
				if ($this->item->description != '' && $titleDesc != '') {
					$titleDesc .= ' - ';
				}
			}
schlogo
Phoca Enthusiast
Phoca Enthusiast
Posts: 51
Joined: 03 Sep 2008, 16:45
Contact:

Re: Empty alt in lightox

Post by schlogo »

does anyone sees this problem or am i alone on this?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Empty alt in lightox

Post by Jan »

Hi, here:

Code: Select all

JHTML::_( 'image.site', $this->item->linkthumbnailpath, '')
to:

Code: Select all

JHTML::_( 'image.site', $this->item->linkthumbnailpath, 'alt')
Jan
If you find Phoca extensions useful, please support the project
schlogo
Phoca Enthusiast
Phoca Enthusiast
Posts: 51
Joined: 03 Sep 2008, 16:45
Contact:

Re: Empty alt in lightox

Post by schlogo »

hello

when i do this modification; the image does not appear anymore :-/

in the source code; the code is modified like this

src="/altimages/phocagallery/

alt is inserterd before the directory name :shock:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Empty alt in lightox

Post by Jan »

Hi, try to see the documentation of joomla methods so you exactly know which parameters should be added to JHTML method: JHTML::_( 'image.site' ...

Jan
If you find Phoca extensions useful, please support the project
schlogo
Phoca Enthusiast
Phoca Enthusiast
Posts: 51
Joined: 03 Sep 2008, 16:45
Contact:

Re: Empty alt in lightox

Post by schlogo »

ok i thought it was a parameter from the gallery, i am going to look into this

tks
Jan wrote:Hi, try to see the documentation of joomla methods so you exactly know which parameters should be added to JHTML method: JHTML::_( 'image.site' ...

Jan
Post Reply