We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37963
    • 2 Posts
    Hi, I'm quite new to modx Revolution so hopefully someone can help me with a little problem I'm having...

    I've created a TV for a specific template, which has an input type of 'resource list'. The output type is text, and outputs the resource number. The problem i'm having, is turning that resource number into the resource URL.

    E.g. I choose the resource 'about' (the about us page), and it returns the resource number '4' into my code. Currently my code looks like this...

    <a href="myTV"> which returns <a href="4">

    Obviously, the destination is not '4', and this needs to be the actual URL of resource 4.

    Any idea how can achieve this?

    Many, many thanks in advance for you help smiley
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      <a href="[[~[[*myTV]]]]">


      Nest the TV tag as the value for the "make URL" tag.
        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
        • 37963
        • 2 Posts
        Thank you very much!