We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5721
    • 13 Posts
    New to Modx...

    getResources is outputting the pagetitle & content from the parent, not the children.

    I have a homepage with an id of 1 & the following code in its template.
    [[!getResources? &parents =`1` &tpl=`featureshome`]]


    the featureshome chunk is:
    <li>
    <h2>[[*pagetitle]]</h2>
    [[*content]]
    </li>


    The homepage has 3 children, each with a pagetitle & content however the pagetitle & content from the parent is displayed 3 times.

    Using Revolution 2.0.8 with getResources 1.2.2
    Any help would be appreciated.

    Conor.
      • 5721
      • 13 Posts
      Solved.
      [[!getResources? &parents=`1` &includeContent=`1` &tpl=`featureshome`]]
      
      <li>
      <h2>[[+pagetitle]]</h2>
      [[+content]]
      </li>