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

    Ok so i have multiple ditto calls on a page (and i’m using pagination for one of the calls).

    I’d like the pagination to only work on that 1 call, but it also paginates the other ditto calls on the page too. Is there a way i can stop pagination on the other calls?

    Cheers
    André
      • 1512
      • 57 Posts
      Call #1 (I dont want this to paginate):
      [[Ditto? &parents=`[*id*]` &levels=`1` &tpl=`ditto_dropdown` &showInMenuOnly=`1` &sortBy=`pagetitle` &sortDir=`ASC` &paginate=`0`]]


      Call #2 (this does paginate):
      [[Ditto? &parents=`[*id*]` &levels=`1` &tpl=`display_dive_centre_list` &showInMenuOnly=`1` &sortBy=`pagetitle` &sortDir=`ASC` &noResults=`<p>Please check back soon for more listings.</p>` &filter=`featured_dive_centre,0` &summarize=`10` &paginate=`1` &paginateAlwaysShowLinks=`1` ]]


      Call #3 (i dont want this to paginate):
      [[Ditto? &parents=`[*id_dive_link*]` &randomize=`1` &filter=`best_dive_site,1` &tpl=`ditto_directory_listing_side` &total=`10` &paginate=`0` ]]
        • 4172
        • 5,888 Posts
        give it unique id:

        [[Ditto? &id=`dive_centre_list` &parents=`[*id*]` &levels=`1` &tpl=`display_dive_centre_list` &showInMenuOnly=`1` &sortBy=`pagetitle` &sortDir=`ASC` &noResults=`<p>Please check back soon for more listings.</p>` &filter=`featured_dive_centre,0` &summarize=`10` &paginate=`1` &paginateAlwaysShowLinks=`1` ]]
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 12421
          • 19 Posts
          there is one important detail not to forget about: if you add an unique ID to a ditto call, you also have to use it in your pagination template, e.g. if the pagination template looked like

          [+previous+] [+pages+] [+next+]
          


          and the unique ID you added to the ditto call was &id=`more_news` then template then needs to be changed to


          [+more_news_previous+] [+more_news_pages+] [+more_news_next+]
          



          Cost me 90 minutes, hope the note helps somebody.

          HF,

          hquadrat
            Usually when things have come so far,
            people tend to disappear.

            MODx Revolution Multi-Domain Installation Tutorial | MODxCMS Webentwicklung Frankfurt Rhein-Main