We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40747
    • 18 Posts
    Hi. I have container with:
    [[getResources? &parents=`11` &tpl=`menu-tpl` &includeContent=`1` &includeTVs=`1` &processContent=`1` &limit=`20` &processTVs=`1`]]

    In documents in this container I use this chunk:
    <span class="menu-category">[[+pagetitle]]</span>
    So I want to display pagetitles of listed docs.

    And when I open webpage I don't see right text, there are TV's value from one document everywhere.

    I tried to change + to +tv., but it also doesn't work.
      • 3109 ☆ A M B ☆
      • 894 Posts
      Try running getResources uncached or clear your cache, it might be displaying the cached version.

      What does your menu-tpl code look like?
        Benjamin Marte
        Interactive Media Developer
        Follow Me on Twitter | Visit my site | Learn MODX
        • 40747
        • 18 Posts
        <div id="menu-list">
        [[+content]]
        </div>

        Running uncached getResources and clearing cache didn't help...
          • 40045
          • 534 Posts
          I have never heard of a &processContent param, is there one? Maybe the presence of this (if not existing) param disturbs poor getResources?
            • 40747
            • 18 Posts
            It also didn't help. What's more if I put TV in document (not in chunk) it also doesn't work :/
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              So you want two listings, in two different places on the page, one of the children's pagetitles, and one of the children's contents?
                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
                • 40747
                • 18 Posts
                I want to display content of few documents, and in every document I want to display this document's title in few places.
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  in every document I want to display this document's title in few places
                  To do that you just use the resource's field tag [[*pagetitle]] wherever you want it.
                    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
                    • 40747
                    • 18 Posts
                    But I want display all documents from container and I want to add TV to its contents by chunk.