Page 1 of 1

s9y_plugin_imagesidebar with s9y_event_lightbox?

Posted: Thu May 07, 2015 2:06 pm
by kybernator
Hi,

I am using the serendipity_plugin_imagesidebar and serendipity_event_lightbox.

The lightbox works fine for images within articles and static pages, but not for those used by imagesidebar. I could of course just use a HTML-nugget to display an image in the sidebar, but I want to use imagesidebar`s ability to rotate through pictures within a directory of the media-db.

Any advice to get the lightbox working for imagesidebar pictures,too?

Cheers,

Bernd

Re: s9y_plugin_imagesidebar with s9y_event_lightbox?

Posted: Thu May 07, 2015 3:01 pm
by Timbalu
Hmm...,
In short: add rel="lightbox" to the image anchor ;-) (somewhere in here: https://github.com/s9y/additional_plugi ... r.php#L227 ff - probably best in here: https://github.com/s9y/additional_plugi ... r.php#L254 but that depends on your selected case.)
I have to admit I don't really feel motivated enough to touch this plugin for this case. (Edit: I did add this option to v.0.98.)

Automagically this does not work, since the lightbox plugin parses entries content only, not sidebars content.

Re: s9y_plugin_imagesidebar with s9y_event_lightbox?

Posted: Thu May 07, 2015 3:08 pm
by kybernator
Thanks.
Timbalu wrote:(...) the lightbox plugin parses entries content only, not sidebars content.
Well, it does parse images in sidebar HTML nuggets, see here http://efg-test.xf1.de/ (upper image provided by plugin_imagesidebar, lower by HTML-Nugget).

Re: s9y_plugin_imagesidebar with s9y_event_lightbox?

Posted: Thu May 07, 2015 3:22 pm
by Timbalu
This is, since serendipity_plugin_html_nugget hooks into 'frontend_display', while serendipity_plugin_imagesidebar does not.

Re: s9y_plugin_imagesidebar with s9y_event_lightbox?

Posted: Thu May 07, 2015 3:42 pm
by kybernator
Ah, yes, thank you.