Implemented Open Gallery through link

More
4 weeks 1 day ago - 4 weeks 1 day ago #3254 by Helmut
Open Gallery through link was created by Helmut
Hello Ruud,
is it possible to open a gallery (in modal) by clicking on a link?

Best regards
Helmut
Last edit: 4 weeks 1 day ago by Helmut.

Please Log in to join the conversation.

More
4 weeks 23 hours ago #3256 by Ruud van Lent
Replied by Ruud van Lent on topic Open Gallery through link
Hi Helmut,
that is (currently) not possible. I need to investigate if this could be possible (it is all handled via JS, so maybe there is a way to achive that).

first thing on the todo for this plugin is the (major) upgrade to the glightbox 3.0 script (this is a big change, so that requires some time to develop and test).

Please Log in to join the conversation.

More
4 weeks 23 hours ago #3258 by Helmut
Replied by Helmut on topic Open Gallery through link
Hello Ruud,
this sounds good. I think, this could be a very nice feature.

Best regards
Helmut

Please Log in to join the conversation.

More
2 weeks 5 days ago #3259 by Ruud van Lent
Replied by Ruud van Lent on topic Open Gallery through link
Work in progress :)

Please Log in to join the conversation.

More
2 weeks 2 days ago #3260 by Ruud van Lent
Replied by Ruud van Lent on topic Open Gallery through link
Finished!

you can view the result on the demo page:  onlinecommunityhub.nl/documentation/ochglightbox-system-plugin

so I introduced a new layout called 'button', you can select that with layout="button"

it will create a button on the page where the tag is located. The button has all the images as a data set, via JavaScript the gallery will popup and be displayed when the button is clicked.

There are two specific tag parameters that can be used with the button layout:
  • buttonclass: for setting your own button class > this way you can have the same buttons as in your template
  • buttontext: this is a translated string (so multi-langual is possible) that will be placed on the button.

Will be releasing this new version somewhere this week.
The following user(s) said Thank You: Helmut

Please Log in to join the conversation.

More
2 weeks 2 days ago #3261 by Helmut
Replied by Helmut on topic Open Gallery through link
Very cool - looks nice! Does ist work with the json-description-file?

Please Log in to join the conversation.

More
2 weeks 2 days ago #3262 by Ruud van Lent
Replied by Ruud van Lent on topic Open Gallery through link
Thank helmut, and yes it does: I have implemented this via a new tmpl / layout file, so all 'server' logic remains the same: it just displays differently (just like flexbox, boxed and masonry layout, you can now select button layout)

Will be releasing later this morning!

Stay tuned :)

regards,
Ruud
The following user(s) said Thank You: Helmut

Please Log in to join the conversation.