We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25876
    • 79 Posts
    Sorry, but after an hour of searching how to very simply address the ID of the document in Revo, I just can’t help posting.

    <li>
        <a href="[~[+id+]~]">[[+title]]</a>
    </li>


    damnit. how do I address the ID? I wish the Revo docu would be a bit more straightforward to answer very basic questions like this one ... thanks.
      • 4971
      • 964 Posts
      If you are in Revo the syntax of all tags has changed...
      so it should be [[+id]].

      You posted this in a Ditto forum, you should really be using
      getResources in Revo. Ditto is not going to be used any more in
      Revo and I think it is not even being supported anymore.

      So your call should look like this:

      <li>
      <a href="[[~[[+id]]]]">[[+title]]</a>
      </li>
        Website: www.mercologia.com
        MODX Revo Tutorials:  www.modxperience.com

        MODX Professional Partner
        • 12379
        • 460 Posts
        Blimey that’s ugly, look at all the brackets you need count on the right. Can’t understand why they couldn’t have kept the logical symmetry of an Evo call!
          Mostly harmless.
          • 36592
          • 970 Posts
            • 25876
            • 79 Posts
            Thanks, charliez, that works.

            Thanks also tkfm; I’ve looked at those syntax, still could not figure it out. Look at the brackets, a bit unreal ;p

            So, how would I solve this problem with getResources?
              • 17499 ☆ A M B ☆
              • 872 Posts
              Actually it’s the exact same numbers of brackets as in Evo.

              I think the reason is to streamline the tags a little and for some reasons linked to the new parser which is more versatile than the Evo parser.

              Honestly, it’s just a question of habits.
                • 3749
                • 24,544 Posts
                The Revo tags are easier to type once you get used to them and they all start with [[ and end with ]], which makes them easier to remember (and faster to parse).
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting