[[++forums_css_framework:notempty=` `:default=` [[- Will eventually download and combine]] `]]
We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
[[-+discuss.user.id:notempty=`
[[+discuss.user.username]]'s Avatar

[[%discuss.recent_activity]][[%discuss.ndash]] [[+discuss.user.unread_posts]][[%discuss.sep]] [[+discuss.user.unread_messages]][[%discuss.sep]] [[+discuss.user.new_replies]]
[[+discuss.user.no_replies_count:gte=`1`:then=` [[+discuss.user.unanswered_questions_count:gte=`1`:then=` [[%discuss.help_answer]] [[+discuss.user.unanswered_questions]] [[%discuss.participate_discussions]] [[+discuss.user.no_replies]]. `:else=` [[%discuss.participate_discussions_solo]] [[+discuss.user.no_replies]]. `]] `:else=` [[+discuss.user.unanswered_questions_count:gte=`1`:then=` [[%discuss.participate_discussions_solo]] [[+discuss.user.new_unanswered_questions]]. `:else=` [[%discuss.no_unanswered_questions_or_discussions]] `]] `]]

`]]
    • 16085
    • 203 Posts
    Just working Revolution 2.0.0-rc-1 rev6614 smiley loving it! and I stumbled on the id in a chunk thing while using getResources. Except my 9.6.x method of using [[* or [[+ where not working and my fURLs certainly weren’t that. Then I found [[~[[+id]]]] at the bottom of the getResources page. All now works but what is that doing as it looks like a nested tag/placeholder. Just curious to know if that is Rev or getResource specific for future reference?
      • 28215
      • 4,149 Posts
      [[~[[+id]]]] in getResources means generate a URL for the current Resource in the loop. +id is the ID of the resource, and ~ means to make a URL from a Resource ID.
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 3749
        • 24,544 Posts
        IOW, it’s a placeholder tag [[+placeholder]] nested inside a link tag [[~##]].

        getResources sets the placeholder to the id of the resource being retrieved.

        In Evolution, it would look like this:

         [~[+id+]~]
          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
          • 16085
          • 203 Posts
          Thanks for that never seen that before other then what gets used in 9.6x and Evo. I was almost close with the nested idea, but I’ll also assume it’s a getResources call rather then something specific to Rev and chunks.
            • 17499 ☆ A M B ☆
            • 872 Posts
            You can find the list of all available tags for Revo here: http://svn.modxcms.com/docs/display/revolution/Tag+Syntax
              • 22303 MODX Staff
              • 10,725 Posts
              Quote from: knightknight at May 21, 2010, 03:20 AM

              Thanks for that never seen that before other then what gets used in 9.6x and Evo. I was almost close with the nested idea, but I’ll also assume it’s a getResources call rather then something specific to Rev and chunks.
              FWIW, Revo allows unlimited nesting of tags unlike Evo. This has nothing to do with getResources.
                • 3749
                • 24,544 Posts
                Quote from: OpenGeek at May 21, 2010, 12:09 PM

                This has nothing to do with getResources.

                I think the OP is using getResources. If the placeholder isn’t set by getResources or some other snippet, the tag would have to be like this, no?

                [[~[[*id]]]
                  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
                  • 22303 MODX Staff
                  • 10,725 Posts
                  Quote from: BobRay at May 21, 2010, 06:23 PM

                  I think the OP is using getResources. If the placeholder isn’t set by getResources or some other snippet, the tag would have to be like this, no?

                  [[~[[*id]]]

                  I was trying to refer only to the OP’s original question of tag nesting, which is likely one reason why many Snippets in Evolution would create placeholders for the URLs, due to the way Evolution parsing was done. You are correct about the [[+id]] vs. [[*id]] BobRay. Sorry for any confusion.
                  [[$thread-login-post]]
                  [[*beforeClose]]