Hi, there is a common problem which cannot be solved. HighSlide JS can be displayed in articles and if e.g. two different codes are set, both get own unique ID and they are not grouped. But on the site, there are displayed two articles (I suppose in some blog or article list view) - both get the same ID, as the setting ID is only working inside the article.
There are different ways to somehow solve it:
- add the plugin after read more - so it will be displayed only when full article is displayed
- try to use another popup method
- or try to customize it and set for each article an ID but this can be problematic because it can be then in conflict
Try the following:
EDIT: plugins\content\phocagallery\phocagallery.php line cca 381
FROM:
TO:
Code: Select all
$btn->hsClass = $highslide_class;
$btn->articleId = (int)$article->id;
AND EDIT: administrator\components\com_phocagallery\libraries\phocagallery\render\renderdetailwindow.php line cca 221
FROM:
Code: Select all
$document->addCustomTag( self::renderHighslideJS($this->extension, $this->popupWidth, $this->popupHeight, $this->hsSlideshow, $this->hsClass, $this->hsOutlineType, $this->hsOpacity, $this->hsCloseButton));
TO:
Code: Select all
if (!isset($this->aritcleId)) {
$this->articleId = '';
}
$document->addCustomTag( self::renderHighslideJS($this->extension, $this->popupWidth, $this->popupHeight, $this->hsSlideshow, $this->hsClass, $this->hsOutlineType, $this->hsOpacity, $this->hsCloseButton, $this->articleId));
and line 227
FROM:
Code: Select all
$this->b1->set('highslideonclick', self::renderHighslideJSImage($this->extension, $this->hsClass, $this->hsOutlineType, $this->hsOpacity, $this->hsFullImg));
TO:
Code: Select all
$this->b1->set('highslideonclick', self::renderHighslideJSImage($this->extension, $this->hsClass, $this->hsOutlineType, $this->hsOpacity, $this->hsFullImg, $this->articleId));
This should solve it, please let me know if it works, if yes, I will try to implement it in next version.
Thank you, Jan