We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 46630
    • 40 Posts
    Hi, I am trying to move from ExpressionEngine to MODx and I am learning that system for 2 days and I am wondering how can I reference another resource and after that in a page to get the parent and a specific TV's of the child resources or vice versa - to get a list of specific fields of the parent (parent's) resources that reference to the same child.

    Thanks for the help.

    This question has been answered by eladnova. See the first response.

    • discuss.answer
      • 37042
      • 384 Posts
      Hi ispasov
      Welcome to MODX. There's possibly a few ways to do this but the most widely used would be achieved by using an extra called getResources.

      Basically, using getResources you would target a child page (or bunch of pages). Within a TPL (chunk), you would specify which Template Variables (TVs) you want to output.

      http://rtfm.modx.com/extras/revo/getresources

      There's lots of getResources properties you can use but skip to the examples for a very quick run through of some sample calls. [ed. note: eladnova last edited this post 12 years, 7 months ago.]
        ...
        • 46630
        • 40 Posts
        Thank you for the quick reply, eladnova.

        I will try that.

        I also found another extra - getRelated, but I think it's not exactly what I am searching for this particular case.
          • 37042
          • 384 Posts
          No problem. I would explain more but I'm using an ipad. Not good for long examples smiley
          Let us know how you get on.
            ...