We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33982 ☆ A M B ☆
    • 476 Posts
    I’ve just begun working with Revo and am using getResources to try and simply pull the content from a MODx resource. I have a MODx Resource with ID 20 that I want to grab some simple content from (it has just an address the client can update for the footer).

    Here’s the getResources call:
    [[!getResources? &resources=`20` &limit=`1` &tpl=`content_tpl`]]


    I created a chunk named "content_tpl" with this value:

    [[*content]]


    It’s just outputting the content for the current page I’m on as opposed to the content from the Resource with ID of 20.

    I’m using MODx Revo 2.1.2-pl with the newest getResources 1.3.1
      Precision Web Development ... SmashStack.com
      • 22303 MODX Staff
      • 10,725 Posts
      The tpl should have [[+content]], not [[*content]], and you will also need the &includeContent=`1` property.
        • 33982 ☆ A M B ☆
        • 476 Posts
        Hey Jason,

        Thanks for the quick response. That did the trick.

        Just finally hopped over to Revo after using Evo for 5 years, so have a bit more learning to do. grin
          Precision Web Development ... SmashStack.com