We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4310
    • 2,310 Posts
    I can’t think of a method for having the second line of links centred as they are all contained within one <div>.
    Maybe someone else can come up with a solution?
      • 1978
      • 131 Posts
      For thos who like me thought it’s a bug of new version - pagination not working with PHx (http://modxcms.com/forums/index.php/topic,14753.0.html)
        Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
        QuickEdit под win-1251 без mb_-функций
        • 22668
        • 718 Posts
        My temporary solution with hide [+pages+] if entire div dont have links.
        Just use Javascript! grin
        You can remove whole div with placeholders and other "pagination" info..
        I use jquery.
        This code don’t have links and will be removed. Else no changes.
        <div class="pages">Pages: <span>1</span></div>


        jquery code:
        if ($(".pages a")) {$(".pages").remove();}
          • 12736
          • 259 Posts
          Hi

          Please help me. I use ditto call inside phx:

          phx:

          [+phx:if=`[[UltimateParent]]`:is=`1`:then=`[+phx:mo=`webUsers`:then=`{{dittoCall}}`+]`+]


          {{dittoCall}}:

          [[Ditto? &parents=`[*id*]` &summarize=`5` &noResults=` `   &tpl=`dittoList`
              &paginate=`1` &paginateAlwaysShowLinks=`1` &display=`all`  &tplPaginatePrevious=`dittoPrevPage` &tplPaginateNext=`dittoNextPage`]] 


          I use uncached page with ditto call, but pagination don’t work huh
            • 7231
            • 4,205 Posts
            Did you place the pagination placehoders on your template?
              [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

              Something is happening here, but you don&#39;t know what it is.
              Do you, Mr. Jones? - [bob dylan]
              • 12736
              • 259 Posts
              Quote from: dev_cw at Sep 26, 2008, 11:54 AM

              Did you place the pagination placehoders on your template?

              Yes! I use a chunk on my template

              {{chnkPagination}}:

              [+1_startLink+] |
              [+1_previous+] |
              <strong>Страница [+1_currentPage+]/[+1_totalPages+]</strong> |
              [+1_next+] |
              [+1_stopLink+] |
              Перейти к 
               [+1_pages+]


              And I find this: http://modxcms.com/forums/index.php/topic,7522.msg107144.html#msg107144 .
              I place my pagination chunk inside of а snippet, but no result.

              Excuse my english.
                • 12736
                • 259 Posts
                Oh! I’m sorry. It’s my mistake. I used two ditto calls with same id inside of one template. I have corrected it. Now it’s ok. thanks
                  • 29525
                  • 388 Posts
                  I’m having problems with pagination also.

                  I’ve got five documents. Pagination set at three per page and I’m using using previous | next links.

                  The previous | next link is not working.

                  When I go to the page from the main menu the the url is: www.domainname/index.php?id=4

                  When I click on next, the page content doesn’t change but the url changes to: www.domainname/index.php?id=4&start=3

                  Here’s my ditto call:
                  [[Ditto? &startID=`4` &dateFormat=`%b-%d-%y` &tpl=`blogtpl`  &paginate=`1` &summarize=`3` &trunc=`1` &paginateAlwaysShowLinks= 1 &truncLen=`200` &sortBy=`pub_date` &sortDir=`DESC` &dateSource=`pub_date` &extenders=`summary` ]]
                  
                  <p>Now showing items [+start+] to [+stop+] of [+total+] entries.<br />
                  [+previous+] [+next+]
                  </p>


                  I’m not using the PHx plugin

                  MODX 9.6.2
                  PHP 5.2.6
                  SQL 5.0.51a
                  Apache 1.3.41
                  Hostgator

                    www.terrybarthdesign.com
                    • 12736
                    • 259 Posts
                    Quote from: Terry at Oct 07, 2008, 10:23 PM

                    I’m having problems with pagination also.

                    You must use uncached page with ditto call.
                      • 29525
                      • 388 Posts

                      Thank you! Thank you! Thank you!
                        www.terrybarthdesign.com