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

    I have a problem with Ditto and pagination on my site: http://www.pcpedia.nazwa.pl/

    In my left sidebar I have a two sections: ’New programs - Windows’ and ’New programs - Linux’

    Ditto calls in my template AqueousLightX:

    New programs - Windows:
    <ul> [[Ditto? &parents=`47, 49` &summarize=`6`  &dateSource=`editedon` &dateFormat=`%x %X` &tpl=`list_li_updates` &sortBy=`editedon` &filter=`hidemenu,1`]] </ul>


    New programs - Linux:
    <ul> [[Ditto? &parents=`14, 16, 22` &summarize=`6`  &dateSource=`editedon` &dateFormat=`%x %X` &tpl=`list_li_updates` &sortBy=`editedon` &filter=`hidemenu,1`]] </ul>


    id 47 - Company
    id 49 - Office

    id 14 - Linux Kernel
    etc.

    In my main site I have this code:

    [[Ditto? &startID=`14, 16, 22, 47, 49` &summarize=`2` &dateSource=`editedon` &paginateAlwaysShowLinks=`1` &sortBy=`editedon` &removeChunk=`Comments` &tpl=`ditto_blog` &paginate=`1` &extenders=`summary,dateFilter`]]
    
    <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> 


    Problem:


    http://www.pcpedia.nazwa.pl/index.php?id=1&start=2 - No documents found (New programs - Linux)
    http://www.pcpedia.nazwa.pl/index.php?id=1&start=4 - No documents found (New programs - Windows, Linux)

    How I fix this?

    PS. Sorry for my bad english.

    Thanks.
      • 18397
      • 3,250 Posts
      In your situation, the Ditto calls in your sidebar are reading the pagination parameters in the URL and applying them. To get around this issue, you will need to use the &id parameter. There is are a few topics in the forums that discuss this. Here’s the first one I found.
      http://modxcms.com/forums/index.php/topic,13478.0.html
        • 477
        • 19 Posts
        Thanks Mark!

        I have insert &id=`call1` and now everything works perfect!

        So easy - so helpful. smiley