Keyword

Lightbox + responsive images for K2

  • Sarrene
  • Sarrene's Avatar Topic Author
  • Offline
  • New Member
More
6 years 2 months ago #169310 by Sarrene
Lightbox + responsive images for K2 was created by Sarrene
Good morning again,
I have, perhaps, a rather silly question:
How do I enable lightbox and scalable/responsive images for k2?

I have this working and enabled in my template and works fine everywhere but k2. So I am at a loss.

Thank you kindly, and I am sure I will bug you at least once or twice more. :)

Please Log in or Create an account to join the conversation.

More
6 years 2 months ago #169317 by JoomlaWorks
Replied by JoomlaWorks on topic Lightbox + responsive images for K2
The responsiveness of K2 should be something for the template to handle.

The main item image can also be viewed in a lightbox/modal when clicked (in the item page). This is standard behaviour. If you don't see it, a JS conflict may be killing the modal.

In any case, a URL to your site would help.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
6 years 2 months ago #169322 by Adem B
Replied by Adem B on topic Lightbox + responsive images for K2
I upgraded k2 to latest version (2.9x) but modal (lightbox?) function was lost. I mean doesn't work anymore. I checked k2 demo page demo.getk2.org/categories/story/224/morbi-adipiscing-sapien-non-tellus but it doesnt work there too.
How can we fix this problem?

Please Log in or Create an account to join the conversation.

More
6 years 2 months ago #169323 by Adem B
Replied by Adem B on topic Lightbox + responsive images for K2
I fixed problem.
I added data-k2-modal="image" to a tag for modal links in template\html\com_k2\default\item.php problem solved.
Thanks.

But like i said in demo page of k2 modal does not work.

Please Log in or Create an account to join the conversation.

More
6 years 2 months ago #169324 by JoomlaWorks
Replied by JoomlaWorks on topic Lightbox + responsive images for K2
We probably skipped the override update as well. Thanks for pointing it out.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Sarrene
  • Sarrene's Avatar Topic Author
  • Offline
  • New Member
More
6 years 2 months ago #169328 by Sarrene
Replied by Sarrene on topic Lightbox + responsive images for K2
@Adem B I will check this out. I can state that an older version of K2 is working fine in terms of lightbox and the responsive content used on another site of ours. However, this is a new test build for another site, and i have been banging my head to find out why.

@Fotis: Should we expect a fix to this coming up soon, or should I attempt the fix that Adem proposed? I still have about a week left or so before we migrate the site to internal testing.

Thank you so much both of you!
:)

Please Log in or Create an account to join the conversation.

More
6 years 2 months ago #169335 by Adem B
Replied by Adem B on topic Lightbox + responsive images for K2
@Sarenne It's not k2 problem. File that i fixed is template file not a core of k2. Propably you will fix that problem by yourself.

Please Log in or Create an account to join the conversation.

More
6 years 2 months ago #169343 by JoomlaWorks
Replied by JoomlaWorks on topic Lightbox + responsive images for K2
Correct. As @Adem B said, it's an override thing (we also fixed it on demo.getk2.org). Unfortunately the backwards compatibility code we had previously caused the modal to open twice (didn't really work). So it's just safer to update the syntax that launches the modal.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Sarrene
  • Sarrene's Avatar Topic Author
  • Offline
  • New Member
More
6 years 2 months ago #169347 by Sarrene
Replied by Sarrene on topic Lightbox + responsive images for K2
Noted, and thank you :)

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #169364 by JoomlaWorks
Replied by JoomlaWorks on topic Lightbox + responsive images for K2
You're welcome.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum