We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36551
    • 416 Posts
    I just spent way too much time on this so I thought I'd share my solution.

    I was unable to get the output modifier to evaluate the contents of my placeholders from MIGX. I tried caching the placeholders in various combination to no effect.

    [[!getImageList?
        &tvname=`grid-content`
        &tpl=`@CODE:
    
        <div class="oneThird grid [[+yellow-background]]">
            [[+grid-copy]]
            [[+grid-video:notempty=`
              <div class="video-wrapper">
                <div class="video-container">[[+grid-video]]</div>
              </div>
            `]]
        </div>
      `]]


    Finally I moved the @CODE: into a chunk and called it like this:

    [[!getImageList?
        &tvname=`grid-content`
        &tpl=`content-grid-migx-tpl`]]


    Now my output modifiers are working correctly.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Inline tpl code should be reserved for small, simple tpls. A snippet's properties aren't parsed in the same way as everything else, so MODX tags and output modifiers usually won't work as expected.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 36551
        • 416 Posts
        Good to know! Thanks.