We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53124
    • 2 Posts
    Hi everyone !
    I am building a website using Foundation Framework, one of the many functions it has is the 'interchange images'.
    The problem is that to include a TV or a Chunk inside this Foundation function using [[ ]] is not working, for Foundation also uses [ ].
    I am trying
    <div data-interchange="[[[*TVname]], small], [[[*TVname]], medium]"></div>

    Is there a way to make this work?

    For your help, many thanks !
      • 37105
      • 194 Posts
      Hi fistudio,

      Maybe not the best solution but it works. Just create a chunk, for example brackets, and put the following in it
      data-interchange="[ [[*TVname]], small], [ [[*TVname]], medium]"

      Notice the extra space I did put after the first square brackets, because with this space between the three brackets MODX will render it as TV.

      The call in your code will be the following
      <div [[$brackets:replace=`[ ==[`></div>

      I did use an output filter to filter the extra space created in the first step. If Foundation does not care about the extra space you can just call the chunk without the output filter.
        Codeplaza Webdesign: for professional websites at low cost