We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15871
    • 105 Posts
    I have worked with and used Ditto for years and never had this issue. The call just won’t work, it keeps displaying "No documents found."

    Here is the call:
    [!Ditto? &id=`teamList` &parents=`[*id*]` &display=`all` &tpl=`team.tpl` &orderBy=`menuindex ASC` &debug=`1`!]


    The debug info does NOT display BTW, and when I added a &noResults parameter, it did not dispaly the parameter text on the page. I have also tried changing the &tpl parameter to something that doesn’t exist to intentionally throw an error. No change to page when I do that. This happens on every page of the site I am using Ditto.

    Here’s the page:http://67.20.108.159/the-wolffer-team

    Details:
    Cached Page + Uncached Ditto Call. (also tried the other ways too)
    MODx 1.0.3

    Ideas?
      • 26016
      • 561 Posts
      Hi,
      I’ve had sort of an opposite problem, and I wonder if it could help you. I have never gotten "orderBy" to work. But I get good results using "sortBy" all the time (using "menuindex" or what-have-you), in conjunction with "sortDir" for the ASC part.

      Ditto always has surprises even though I use it all the time. It’s possible that "orderBy" requires a certain version of MySQL or something, I just don’t know. Debug isn’t working... very strange.

      Beyond that, it’s hard to say without seeing the innards of your site. I wonder if it could even be something like being inoperative due to being on a non-propogated URL or some other server setting that we can’t see.

      Good luck, dave
        MODx and Wordpress development
        Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
        • 3749
        • 24,544 Posts
        You’re asking for children of the current page. Does the page actually have children?

        Also W3C is showing a couple of errors in the Ditto section:

        http://validator.w3.org/check?uri=http%3A%2F%2F67.20.108.159%2Fthe-wolffer-team&charset=%28detect+automatically%29&doctype=Inline&group=0
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 15871
          • 105 Posts
          Hi Samba,

          I tried removing all parameters actually and it still does the same thing.

          BobRay, Yep, It has children. I also tried pointing it to the root and the same thing happens. The Validation issue is actually the default noResults text which has a p tag wrapped around it I have Ditto wrapped inside a UL tag.

          The crazy thing is that no matter what I add to the Ditto call, it does the same thing. I could add gibberish to the snipet parameters and it still says "No Documents Found"

          I’m going to wipe the snippet directory and reupload, maybe it’s a corrupted file, or an encoding issue <grasp>straws</grasp>
            • 15871
            • 105 Posts
            OMG, this was a totally ridiculous mistake. Needless to say, my forehead hurts from slapping it.

            I have a template with the Ditto call embedded in it (which I forgot I did), so I kept changing the Ditto call on the document content field, but it was never being pulled onto the actual page.

            It’s too late. I have to go to sleep. tongue

            Thanks for everyone’s suggestions, believe it or not, they helped narrow my scope to find this stupid gaff.