We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36704
    • 131 Posts
    Hi,
    This morning i tried to use the getResourceField and it's work pretty well.
    However the only thing that i was looking for this plugin is to have a TPL so that i could arrange any field & TV's.
    Another question:
    Is it possible to have more than one fields / TV's in getResourceField?

    Thanks & god bless!
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      All getResourceField does is exactly what it says... returns the specified field of the specified resource. One field, no formatting thus no tpl.
        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
        • 36704
        • 131 Posts
        softwell,
        Thanks for your quick response ...
          • 35150 ☆ A M B ☆
          • 191 Posts
          Apologies for tooting my own horn here, but you might check out my extra called setPlaceholders. It works similarly to getResourceField, only it can get multiple fields at once and store them in placeholders for easy use in a template. It also has a lot more options for getting fields and can navigate through parents, siblings and children.

          If you have several resources you need to loop through using the same template for each, have a look at getResources.
            Extras :: pThumb • Resizer • imageSlim • setPlaceholders