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
s9y_plugin_imagesidebar with s9y_event_lightbox?
-
- Regular
- Posts: 135
- Joined: Sat Sep 22, 2012 10:15 pm
Re: s9y_plugin_imagesidebar with s9y_event_lightbox?
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.
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.
Regards,
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
-
- Regular
- Posts: 135
- Joined: Sat Sep 22, 2012 10:15 pm
Re: s9y_plugin_imagesidebar with s9y_event_lightbox?
Thanks.
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).Timbalu wrote:(...) the lightbox plugin parses entries content only, not sidebars content.
Re: s9y_plugin_imagesidebar with s9y_event_lightbox?
This is, since serendipity_plugin_html_nugget hooks into 'frontend_display', while serendipity_plugin_imagesidebar does not.
Regards,
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
-
- Regular
- Posts: 135
- Joined: Sat Sep 22, 2012 10:15 pm
Re: s9y_plugin_imagesidebar with s9y_event_lightbox?
Ah, yes, thank you.