0
Welcome Guest! Login
0 items Join Now

SOLVED replace filter in twig does'nt work, why

  • SOLVED replace filter in twig does'nt work, why

    Posted 8 years 6 months ago
    • Why i can't use this |replace filter:?
      {% if particle.headline %}
      <h2 class="g-title g-subpromo">
          {{ particle.headline|replace({ '%count%', 'foo' }) }}
      </h2>
      {% endif %}
      

      Get an rendering error.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED replace filter in twig does'nt work, why

    Posted 8 years 6 months ago
    • The seperator is a colon not a comma. http://twig.sensiolabs.org/doc/filters/replace.html

      Regards, Mark.
    • Last Edit: 8 years 6 months ago by MrT.
    • The following users have thanked you: mediaDESIGN.SK

    • 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.
  • Re: SOLVED replace filter in twig does'nt work, why

    Posted 8 years 6 months ago
    • Thank you, you're doing my job

Time to create page: 0.078 seconds