We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30319
    • 406 Posts
    I'm sure someone's figured this out...
    I need to put two different Articles listings on one page:

    [[Articles? &container=`69` &tpl=`board.ArticleRowTpl`]]
    [[Articles? &container=`73` &tpl=`board.ArticleRowTpl`]]


    But the same content shows up twice -- the last-called resource ID.

    How to fix or work around this??

    Thank you, Tom

    This question has been answered by multiple community members. See the first response.

      • 28215
      • 4,149 Posts
      I don't think that's an available feature at this time. You can feel free to put it in as a FR.
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • discuss.answer
        • 30319
        • 406 Posts
        Can I use GetResources for one of the Articles calls??
        Alternatively I can use the old 'blog' method.

        I think this would be a very useful feature.
        Do FRs go into bugs.modx.com??

        Thank you, Tom
          • 30319
          • 406 Posts
          done smiley hope it can be done soon smiley not knowing how complicated that is smiley
            • 22840
            • 1,572 Posts
            And when it is a feature you will need to call them uncached
            [[!Articles? &container=`69` &tpl=`board.ArticleRowTpl`]]
            [[!Articles? &container=`73` &tpl=`board.ArticleRowTpl`]]
              • 30319
              • 406 Posts
              just 4 kix & gigglez i will try that anyway see what happens smiley
                • 37975
                • 12 Posts
                It is not good solution, but it works. For each container of news i created a chunk, in each chunk it is a code, that was specified above:
                [[Articles? &container=`IDOFCONTAINER`]]
                [[+latest_posts]]


                Then, just call needed chunks on a page. This is ok if there are several categories and they are fixed.
                  never give up!
                • discuss.answer
                  • 30319
                  • 406 Posts
                  Thank you, I did it like this for the two articles containers:

                  [[!getResources?
                    &tpl=`board.ArticleContentTpl`
                    &parents=`73`
                    &showHidden=`1`
                    &includeContent=`1`
                    &includeTVs=`1`
                    &processTVs=`1`
                    &tvPrefix=``
                  ]]


                  The template is site-specific is the same as ArticleRowTpl with [[+content]] for the placeholder.

                  Thank you, Tom


                    • 13577
                    • 302 Posts
                    rebel_forces solution worked for me too. Though it didn't work if I forced the snippets to be uncached in the chunk. Thanks all.
                      Standard Disclaimer
                      I could be totally wrong.
                      • 30319
                      • 406 Posts
                      Equally easy to use multiple getResources calls.