We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25919
    • 4 Posts
    Hi there,

    I’ve been trying to get ditto to summarize section summary so that it is the same order as the sidebar menu. My site is setup so that the first page each section summarizes the pages for that section. I’ve look around and played with the code but it just isn’t working. I’ve add &sortBy=’menuindex’ and still no luck. Here’s my code:

    [[Ditto? &startID=`15` &showInMenuOnly=’1’ &sortBy=`menuindex` &dateFormat=`%B %d %Y` &summarize=`20` &removeChunk=`Comments` &tpl=`ditto_cfa` &paginate=`1` &extenders=`summary` &showPublishedOnly=`1` &tagData=`documentTags`]]

    What’s wrong?

    Please help. Thanks in advance.

    Cheers
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Your showInMenuOnly value is using single-quotes rather than backticks, although I don’t know if that’s causing your problem. What version is your MySQL database? There is one common version that has a bug that breaks certain types of sorting and grouping.
        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
        • 3749
        • 24,544 Posts
          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
          • 25919
          • 4 Posts
          I changed the quotes and that didn’t work.

          I also looked for the Group by statement but couldn’t find it.

          I’m also going to update mysql this weekend though I am running version 5.0.22 which should be OK. I’ll update anyways and see if that helps.

          Thanks for the replies.

          Cheers
          Glenn