We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30765
    • 66 Posts
    I want to make a contents page that includes both published and unpublished comments. There’s a showPublishedOnly parameter that in 2.1 beta 2 should, when set to zero, show both published and unpublished. But it seems to have no effect -- I only get published articles.

    This is my Ditto call:

    [[Ditto? &tpl=`ContentsSection` &showPublishedOnly=`0` &display=`all` &sortBy=`menuindex` &sortDir=`ASC`]]


    Am I missing something (very likely)? I’m using the latest dev version (r1460).

    Thanks
    Matt
      • 25663 MODX Staff
      • 12,272 Posts
      Try calling it uncached. You may have a cached version of the page if you’ve not added new articles/pages.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 30765
        • 66 Posts
        Quote from: rthrash at Sep 17, 2007, 10:09 AM

        Try calling it uncached. You may have a cached version of the page if you’ve not added new articles/pages.

        Yes, I’ve tried that, and cleared the cache too just to be sure. Still doesn’t return any unpublished articles.

        In r1460, setting &showPublishedOnly to 0 or 1 gives the same results (for me, anyway) -- just the published articles.

        Thanks
        Matt
          • 30765
          • 66 Posts
          Narrowed this down to a recursion issue -- it’s only on child documents that the bug appears.

          Update: sorry, this is completely bogus. Ditto works fine and the error is mine. Sorry for the noise.