Page 1 of 1
Slideshow - link to detail view with player
Posted: 09 Oct 2009, 09:16
by kindUp
Hi Jan,
I have a question:
Is it possible to set the link into slideshow so that when you click on the image to start immediately detail view with a player who show all images in category (no link to other side as it is now)?
Thank's
p.s.
I use shadowbox player.
Re: Slideshow - link to detail view with player
Posted: 22 Oct 2009, 11:01
by kindUp
Hi,
If you want to display the slideshow ditail view (I use shadowbox player), directly after clicking on the slideshow in the article - here's a solution:
1)before
for loop - line about 110 - there is:
insert this line:
2)
after switch loop
switch ($image) - after code line about 136 - there is:
Code: Select all
$script .= 'fadeimages'.$c.'['.$i.'] = [\'' . JURI::base(true).'/'.$imageName->rel . '\', \'\', \'\'];'. "\n";
insert this line:
Code: Select all
$slideImg->link[] .= PhocaGalleryFile::getFileOriginal($images[$i]->filename , 1);
$slideImg->title[] .= $images[$i]->title;
3)
change output at code into lines about 203-210 - there is:
Code: Select all
if ($siteLink != '') {
$output .= '<a href="'.$siteLink.'" ><span id="phocagallerycontent'.$c.'"></span></a>'. "\n";
} else {
$output .= '<div id="phocagallerycontent'.$c.'"></div>';
}
changed into
else:
Code: Select all
if ($siteLink != '') {
$output .= '<a href="'.$siteLink.'" ><span id="phocagallerycontent'.$c.'"></span></a>'. "\n";
}
} else {
for($k=0;$k<count($slideImg->link);$k++){
$output .= '<a href="'.$slideImg->link[$k].'" rel="shadowbox[gallery'.$c.'];options={slideshowDelay:5,overlayOpacity: \'0.2\'}" title="'.$slideImg->title[$k].'"><span id="phocagallerycontent'.$c.'"></span></a>'. "\n";
}
}
options={slideshowDelay:5,overlayOpacity: \'0.2\' - it isn't required, this is my options to display shadowbox
kindUp
Re: Slideshow - link to detail view with player
Posted: 23 Oct 2009, 21:43
by Jan
Ok, thank you for this info.
Jan