Hi,
I'm trying to find a way to display the descriptions under the images within the article (not after popup) in the Phoca Gallery Slideshow plugin.
Can anyone suggest an option for this?
Thank you for your time!
Display Descriptions under Images in Phoca Gallery Slideshow
-
- Phoca Newbie
- Posts: 2
- Joined: 17 Oct 2011, 23:15
-
- Phoca Newbie
- Posts: 2
- Joined: 17 Oct 2011, 23:15
Re: Display Descriptions under Images in Phoca Gallery Slide
If there's a simple option that I'm overlooking I don't want this to be a sidetrack, but something I've tried is using the code from:
http://www.dynamicdrive.com/forums/show ... hp?t=54084
Adding:
onslide:function(curlayer, curimage){
var $image=jQuery(curlayer).find('img').eq(curimage) //reference current image being shown
var $descpanel=this.setting.$descpanel //reference description panel
$descpanel.css({top:parseInt($image.css('marginTop'))+parseInt($image.height())})
}
To the normal Ultimate Fade-In Slideshow code in Plugins>Content>phocagalleryslideshow>phocagalleryslideshow.php.
However, I'm now getting the error:
Fade In Slideshow error: An error has occured somwhere in your code
attached to the "onslide" event: TypeError: $descpanel is undefined
http://www.dynamicdrive.com/forums/show ... hp?t=54084
Adding:
onslide:function(curlayer, curimage){
var $image=jQuery(curlayer).find('img').eq(curimage) //reference current image being shown
var $descpanel=this.setting.$descpanel //reference description panel
$descpanel.css({top:parseInt($image.css('marginTop'))+parseInt($image.height())})
}
To the normal Ultimate Fade-In Slideshow code in Plugins>Content>phocagalleryslideshow>phocagalleryslideshow.php.
However, I'm now getting the error:
Fade In Slideshow error: An error has occured somwhere in your code
attached to the "onslide" event: TypeError: $descpanel is undefined
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Display Descriptions under Images in Phoca Gallery Slide
Hi, this is possible since version 3.x
See:
https://www.phoca.cz/documents/19-phoca- ... how-plugin
the parameter desc
Jan
See:
https://www.phoca.cz/documents/19-phoca- ... how-plugin
the parameter desc
Jan
If you find Phoca extensions useful, please support the project