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

    after upgrading to 1.0.2 Ditto has quit parsing whenever I have pagination enabled. Here’s my call:

    [!Ditto? &parents=`16` &display=`10` &orderBy=`createdon DESC` &depth=`3` &commentsChunk=`reviewComments` &hideFolders=`1` &summarize = `number of results per page` &paginate=`1` &paginateAlwaysShowLinks= `1` &tpl=`feature_tmpl`!]


    It was working fine before I upgraded and Ditto still works whenever pagination isn’t enabled. I’m sure there’s a simple solution, but I’m stumped.

    thanks for any input.
      • 16278
      • 928 Posts
      Is this what you actually have?
      &summarize = `number of results per page`
      Something like &display=`6` might work better (&display replaced &summarize in Ditto 2.1) - perhaps a change in the code that parses parameters is behind the problem.

      I’m beginning to think I’ll wait a while before trying 1.0.2!
      smiley KP
        • 27421
        • 67 Posts
        Thanks for the reply. &display is working better than &summarize as it’s actually parsing. However, it’s still not paginating. Here’s what I have

        [!Ditto? &parents=`16` &display=`10` &orderBy=`createdon DESC` &depth=`4` &hideFolders=`1` &display=`6` &paginate=`1` &paginateAlwaysShowLinks= `1` &tpl=`feature_tmpl`!]
        <p> </p>
        <div class="span-5 prefix-8">
        <div id="ditto_pages"> [+previous+] [+pages+] [+next+] </div>
        <p> </p>


        It’ll limit the results to 6, but none of the pagination links are displaying.
          • 16278
          • 928 Posts
          Do you have PHx installed as a plugin? If so, you need to change the arrangements for caching (http://www.pogwatch.com/ditto/ditto-pagination.html). Even if not, it may be worth a try with Ditto call cached, page uncacheable.
          smiley KP
            • 27421
            • 67 Posts
            Awesome! That fixed it. Thanks for your help.