We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31037
    • 358 Posts
    I must be doing some stupied error, can’t get pagination to work.

    I use Ditto 2.0.1 and MODx 0.95 and use the default Ditto template and the pagination example as in the tutorial. The text in the pagination aera show up, but the placeholders have no value.

    I’ve attached the debug info to this post.

    Page call:

    [!Ditto? &parents=`1,2,35,27,32` &depth=`3` &display=`3` &total=`10` &paginate=`1` &paginateAlwaysShowLinks=`1` &debug=`1`!]
    
    <p>Showing <strong>[+start+]</strong> - <strong>[+stop+]</strong> of <strong>[+total+]</strong> Articles | Page <strong>[+currentPage+]</strong> of <strong>[+totalPages+]</strong></p> <div id="ditto_pages"> [+previous+] [+pages+] [+next+] </div> </div>


    Thanks for any help.

    /Uncle68
      • 18397
      • 3,250 Posts
      Do you have PHx installed?
        • 31037
        • 358 Posts
        Yes Sir! PHx Version 2.1.2.

        When I disable the phx plugin it works! But I would like to be able to use it! smiley

        If I set &phx=`0` in the Ditto call it still doesn’t work, I have to disable the plugin itself.

        Have I missed some instructions?
          • 11975
          • 2,542 Posts
          Hi as a work around

          call your snippet cached and set the page to uncacheable.

          :-)
            Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
            • 31037
            • 358 Posts
            Thank you! When calling Ditto cached it works! smiley I believe I tried everything but that! Spent 5 hours on trying to get it to work. I should not be so afraid to ask for support! tongue
              • 18397
              • 3,250 Posts
              Never be afraid to ask a question smiley
                • 33114
                • 518 Posts
                I wonder if this to be fixed in future? Calling a page with say 3 ditto calls uncached + having many visitors makes some load on the database. The only optimisation that I see for now is using archives instead of pagination, right? Or is it ok with new db retrieving scheme Ditto 2 uses and theres no much load?

                And btw if we add an "id" parameter to a call using the above "uncache" workaround - we still see no pages. (I have to prefix the placeholders with the id, yeah)
                  http://modx.ru - российская поддержка MODx
                  http://newscup.ru - экспериментальный проект
                  http://yentsun.com - персональный сайт