We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44987
    • 14 Posts
    Hi all! Can anyone tell me how to use @INLINE in getResources? I don't understood it, here's said what I should set Property Set Value tpl\* but it is not work... Maybe anyone explain me step by step how it will be work?
      • 4172
      • 5,888 Posts
      doesn't this work?

      [[getResources?
      &tpl=`@INLINE <li>[[+pagetitle]]</li>`
      &parents=`XXX`
      ]]
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        The RTFM warns that this may be problematic if the inner placeholder tags are processed before the containing snippet is processed; it recommends to only use such a syntax in Property Sets. That said, I've never had a problem using @CODE in the same manner - I've never used @INLINE.

        Also, be aware that the example shown in the RTFM is using quote marks to deliniate the sample, when actually used in snippet properties it must be backticks.
        This must be followed by a space, e.g. "@INLINE <li>[[+pagetitle]]</li>"
        In actual usage, that would need to be
        `@INLINE <li>[[+pagetitle]]</li>`
          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
          • 44987
          • 14 Posts
          Quote from: Bruno17 at Sep 03, 2013, 08:40 AM
          doesn't this work?

          [[getResources?
          &tpl=`@INLINE <li>[[+pagetitle]]</li>`
          &parents=`XXX`
          ]]
          Thank you, it is working!
            • 36924 ☆ A M B ☆
            • 298 Posts
            getResources has not been working for me in the 8 months. At some point I had to move back to Drupal on a project just because of this.

            I have a discussion started here:
            https://forums.modx.com/thread/86499/is-getresources-snippet-dead#dis-post-476764

            Thanks.