We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8168
    • 1,118 Posts
    Hi guys, Anyone know how to succesfully use [[getResourceField?]] snippet?

    I am using this call to try and render on screen the pagetitle of the resource’s parent resource... [[getResourceField? &id=`[[*parent]]` &field=`title`]] // however it renders nothing on screen???


    Any ideas?

    cheers,

    dubbs.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Isn’t the field `pagetitle` or `menutitle`?
        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
        • 8168
        • 1,118 Posts
        Yep, sorry Susan you are correct the wrong name in the field area - how could one return the URL ID also?
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          You mean the parent’s alias? Or its ID? For the parent’s id just [[*parent]] will do that. [[~[[*parent]]]] will make a URL to the parent (of the current resource)
            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