We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 50595
    • 32 Posts
    Hi there

    I created a MIGX TV ("inputTVtype": "resourcelist") that outputs a resource ID on the front end. It really outputs the resource ID if I call the content with

    [[+intern-link]]


    But it doesn't output anything if I call it with this:

    [[~[[+intern-link]]]]


    This is my getImageList call:

    [[!getImageList?
    
    		&parents=`[[*id]]`
    		&tvname=`solutions`
    		&tpl=`@CODE: <div class="column"><h3>[[+title]]</h3><p>[[+description]]</p><p><a href="[[++site_url]][[~[[+intern-link]]]]" class="button small primary expanded">[[+button-text]]</a></p></div>`
    
    ]]
    


    Is there an obvious reason why it doesn't work as expected?

    Greetings

    Ralph

    This question has been answered by sottwell. See the first response.

      • 30585
      • 833 Posts
      Any errors in your log file?
        A MODx Fanatic
      • discuss.answer
        Try putting that tpl in a chunk, and using the chunk name in the tpl property. Sometimes there are problems with cached and uncached tags all jumbled up together like that.

        The outermost snippet is not cached, so the placeholder it outputs isn't available when the makeURL tag tries to run.
          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
          • 50595
          • 32 Posts
          Hi Susan

          Quote from: sottwell at Feb 08, 2016, 06:00 PM
          Try putting that tpl in a chunk, and using the chunk name in the tpl property.

          That did the trick! After putting the code in a chunk it works fine.

          Thank you

          Ralph