Page 1 of 2

Empty alt in lightox

Posted: 12 Sep 2009, 00:19
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"/>

Re: Empty alt in lightox

Posted: 12 Sep 2009, 20:26
by Jan
Hi, which method of detail view do you use?

Re: Empty alt in lightox

Posted: 14 Sep 2009, 19:30
by schlogo
hello

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

tks for your help

Re: Empty alt in lightox

Posted: 15 Sep 2009, 17:05
by Jan
Hi, this you can change it it:

\components\com_phocagallery\views\detail\tmpl\default.php

Re: Empty alt in lightox

Posted: 15 Sep 2009, 17:16
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 .= ' - ';
				}
			}

Re: Empty alt in lightox

Posted: 18 Sep 2009, 06:10
by schlogo
does anyone sees this problem or am i alone on this?

Re: Empty alt in lightox

Posted: 24 Sep 2009, 15:03
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

Re: Empty alt in lightox

Posted: 27 Sep 2009, 04:41
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:

Re: Empty alt in lightox

Posted: 01 Oct 2009, 22:53
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

Re: Empty alt in lightox

Posted: 02 Oct 2009, 04:05
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