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

    I am having issues using Ditto and Reflect with Pagination.

    I am trying to create a news archive viewer, so you can select the year and page through the selected years press releases. For some reason the pagination ability gets lost when I introduce Reflect.

    Example:

    On the page I have these two calls:
    [!Ditto? &debug=`1` &id=`wp` &extenders=`dateFilter` &summarize=`2` &parents=`3` &dateSource=`pub_date` &sortBy=`pub_date` &tpl=`press_list_item` &paginate=`1` !]

    [!Reflect? &id=`wp` &targetID=`3` &getDocuments=`1` &showItems=`0` &dateSource=`pub_date` &dittoSnippetParameters=`parents:3`!]


    My Pagination lines come straight from the online example:
    <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>
    


    The pagination placeholders are refusing to show!...

    If I remove the &id=`wp` on the Ditto line it starts to work again but without any archive functionality. huh

    Has anybody else encountered this issue?

    Regards:


    John
      • 14556
      • 9 Posts
      Got it!

      http://modxcms.com/forums/index.php/topic,12262.msg97035.html#msg97035

      Have to prefix the ID onto the placeholders.