Support Forum

Hi Ivo

I want to use the media box particle. My question:
In the "Description" box of the individual items, I need to add a "read more" or a slider or something so that I can only show the first paragraph of the Description. Is there a way to do that? I tried using html and the slider syntax from regular labs slider plugin, but that doesn't work.
Appreciate your help, as always.

Accepted Answer

Monday, July 13 2020, 03:12 PM - #Permalink
Hi David,

By default, the "Description" field in the "Media Box" particle does not render shortcodes (for example the Regular Labs Slider).

Anyway, I modified the particle so it now renders shortcodes.
Here's what you need to do:

1. Download the attached file.

2. UNZIP it on your computer. You will find one file - media-box.html.twig.

3. Copy the media-box.html.twig file to root/templates/TEMPLATE_DIR/custom/particles (if the particles folder does not exist, you will need to create it manually). Basically, this step is the same as the one described in the Overriding Particle Source Files section in the Gantry 5 Documentation.

4. Clear Joomla cache.
The reply is currently minimized Show
Responses (2)
  • Accepted Answer

    Monday, July 13 2020, 07:29 PM - #Permalink
    You are a true hero, Ivo! :D
    Thank you very much - solves a real aesthetic problem for me.

    Best regards
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, July 14 2020, 09:54 AM - #Permalink
    You are welcome David!
    Have a great day mate :)
    The reply is currently minimized Show
Your Reply

Become an insider | Subscribe to our Newsletter
Subscribe to our mailing list and stay up-to-date with all our awesome releases, latest updates and amazing discount offers!