Home Forums Particles Support Card Particle – image in lightcase modal Reply To: Card Particle – image in lightcase modal


For the lightcase I added a checkbox to the YAML:

              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!


  • This reply was modified 5 years, 9 months ago by Jay.
80+ templates updated for Joomla 5.1.1 and JoomLead particles 2.3.0 Download
Flash Sale. Get Up to 25% Off - Coupon: FLASH25 Shop Now