s9y_plugin_imagesidebar with s9y_event_lightbox?

Creating and modifying plugins.
Post Reply
User avatar
kybernator
Regular
Posts: 126
Joined: Sat Sep 22, 2012 10:15 pm

s9y_plugin_imagesidebar with s9y_event_lightbox?

Post by kybernator » Thu May 07, 2015 2:06 pm

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

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: s9y_plugin_imagesidebar with s9y_event_lightbox?

Post by Timbalu » Thu May 07, 2015 3:01 pm

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.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

User avatar
kybernator
Regular
Posts: 126
Joined: Sat Sep 22, 2012 10:15 pm

Re: s9y_plugin_imagesidebar with s9y_event_lightbox?

Post by kybernator » Thu May 07, 2015 3:08 pm

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).

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: s9y_plugin_imagesidebar with s9y_event_lightbox?

Post by Timbalu » Thu May 07, 2015 3:22 pm

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

User avatar
kybernator
Regular
Posts: 126
Joined: Sat Sep 22, 2012 10:15 pm

Re: s9y_plugin_imagesidebar with s9y_event_lightbox?

Post by kybernator » Thu May 07, 2015 3:42 pm

Ah, yes, thank you.

Post Reply