Home Forums Particles Support Card Particle – image in lightcase modal

Viewing 3 posts - 1 through 3 (of 3 total)

  • Jay
    Subscriber

    Is it possible to add a link to the image of a card particle?

    Furthermore, is it possible to have that link be to an image and have it appear in a lightcase modal?

    Thanks in advance!

    Jay


    Jay
    Subscriber

    For the lightcase I added a checkbox to the YAML:

    image_lightcase:
                  type: input.checkbox
                  label: Image Lightcase
                  description: Shows image in a lightcase modal.
                  overridable: false
                  default: false

    And the following to the twig before the image:

    {% if particle.image_lightcase == '1' %}<a href="{{ particle.image|e }}" data-rel="lightcase">{% endif %}

    After the image:

    {% if particle.image_lightcase == '1' %}</a>{% endif %}

    Let me know if there is a better or more universal way!

    Thanks
    Jay

    • This reply was modified 7 years, 4 months ago by Jay.

    Tony
    Moderator

    Is it possible to add a link to the image of a card particle?

    Sure, we can create a link or change the button link to image without problem. Uikit atom already support lightbox or modal so just implement to the card image without using lightcase 🙂
    Please submit the ticket here https://joomlead.com/ticket-support/ we will help you customize the particle

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Updated 80 Joomla templates for Joomla 6.0.3, Gantry Framework 5.6.0, and JoomLead Particles 2.3.4, plus additional improvements. Download Now
Flash Sale. Get Up to 25% Off - Coupon: FLASH25 Shop Now