We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53283
    • 14 Posts
    I am using MODX 2.5.6
    I have two resources that will use the same template. Within the template I have a getResources call to get the resources for a particular part of the page. My question is, how do I write it so that two different getResources parent ids can be used for the respective resources. Surely I don't have to create a separate template for the second page? Any help please?
    This is my entire template code:

    [[$head]]
    [[$navigation]]
    [[$heroImage]]
    
    <div class="clearfix two-column-fixed-height">
      <div class="inner-wrapper mx-auto">
    
        [[!getResources?
          &debug=`1`
          &parents=`8`
          &limit=`4`
          &depth=`0`
          &includeTVs=`1`
          &processTVs=`1`
          &includeContent=`1`
          &tvPrefix=``
          &tpl=`twoColumnFixedHeight`
          &sortdir=`ASC`
        ]]
    
      </div><!--/inner-wrapper-->
    </div><!--/two-column-fixed-height-->
    
    [[$footer]]
    [[$copyright]]
    [[regAppJS]]
    [[regSlickJS]]
    [[regGradientSliderJS]]
    [[$foot]]



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

    • discuss.answer
      • 53283
      • 14 Posts
      Feel a little stupid now... Of course, one needs to use
      &parents=`[[*id]]`