0
Welcome Guest! Login
0 items Join Now

Solved. Remnant Mini player line break

  • Solved. Remnant Mini player line break

    Posted 1 year 8 months ago
    • I wonder if it is possible to insert a line break between the first 2 params of the Mini player particle .. (see picture attached)
    • Last Edit: 1 year 8 months ago by Pieter van Horssen.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: Remnant Mini player line break

    Posted 1 year 8 months ago
    • Yes, it's possible if you create a particle override.

      To learn how to override a particle in Gantry 5 please see our documentation here http://docs.gantry.org/gantry5/tutorials/overriding-particle-settings#overriding-particle-source-files .

      Then alter line 23 of the twig file from:
      {% if item.artist %}{{ item.artist }}{% endif %}{% if item.artist and item.tracktitle %} - {% endif %}{% if item.tracktitle %}{{ item.tracktitle }}{% endif %}

      to:
      {% if item.artist %}{{ item.artist|raw }}{% endif %}{% if item.artist and item.tracktitle %} - {% endif %}{% if item.tracktitle %}{{ item.tracktitle|raw }}{% endif %}


      Then you can just add a break in either field by adding <br /> wherever you need it.

      Regards, Mark.
    • The following users have thanked you: Pieter van Horssen

    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.

Time to create page: 0.053 seconds