I can't manage to get the AJAX lightbox to work

Created on 25 January 2023, almost 2 years ago

Problem/Motivation

Hi,

First of all I want to thank you for the splidemodule - the perfomance of my sliders is just so much better than with slick!

Now to my problem:

I've been trying to integrate the Splidebox Lightbox for a few days now, but so far without success. I would be very happy about any support and would offer in return to formulate an appropriate documentation for future users!

Steps to reproduce

  1. In my Content Type I select Blazy as field formatter under formats.
  2. I select "Image to Splidebox" under media switcher.

Do I need to integrate the Lightbox AJAX link and if so how?
In the description it says: "Choose any single value field link types which have urls (node/123) to nodes..." I just don't understand what exactly to do here? Should I create a link field in this content type? That doesn't work for me though.

In the frontend I now get a plus when hovering over the images, but nothing happens when I click.

I would be very happy about any support!

Kind regards

AgathaCrystal

💬 Support request
Status

Fixed

Version

1.0

Component

Documentation

Created by

🇩🇪Germany AgathaCrystal Potsdam

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @AgathaCrystal
  • 🇮🇩Indonesia gausarts

    Yes, create a link field to choose for in the Content type where the formatter is in use. Clear cache if not directly visible. Also plain text would do.

    The URL needs to start with a slash (/) for internal, might be the problem if not.

    Also please try:

    • Filling out the Grid when using Display style as described, says 3, etc.
    • Choose Fluid for Aspect ratio, etc. else collapsed.
    • Choose Thumbnail image style.

    Let me know if any more issues.

  • 🇩🇪Germany AgathaCrystal Potsdam

    Thanks for the fast reply!

    So I created the link field as documented in the image, but still there is nothing showing up - am I missing something here?

  • 🇮🇩Indonesia gausarts

    Oops, I think I forgot the details without seeing the exact description. I am away from the laptop now :)

    If it is a Media field, create a single link field in the Media field, not Content type. More info in the rest of the description which I missed from your OP.

    That should do :)

  • 🇩🇪Germany AgathaCrystal Potsdam

    Ok, haha yeah this was the problem. Now I can select the ajax link. Thanks!

    This resulted in another problem tho: If I click on one of the images in the frontend I get the following error:

    I already looked into this fix Uncaught (in promise) undefined 💬 Uncaught (in promise) undefined Fixed , but it didn't work for me (I'm at version 4.1.2). I'll gonna report into the issue for clarity.

    Thanks for your help so far!

  • Status changed to Fixed almost 2 years ago
  • 🇮🇩Indonesia gausarts

    Ok, let's follow up on the other issue :)

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024