We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9994
    • 133 Posts
    I tried last hours all kind of calls but it doesn’t work like it should sad

    modx 1.0.2
    phx 2.1.3

    Dittocall:
    [[Ditto? &parents=`9` &summarize=`2` &tpl=`berichtinhoud` &paginate=`1` &paginateAlwaysShowLinks=`1` &language=`nederlands` &display=`2`]]
    
    U are on page: <strong>[+start+]</strong> of total <strong>[+stop+]</strong> <br>
    Total: <strong>[+total+]</strong> <br>
    Pages: <strong>[+totalPages+]</strong> 
    <br><br>
    <div id="ditto_pages"> [+previous+] [+pages+] [+next+] </div> 


    I tried cached and uncached, phx=`0` etc etc.

    When i use it like above these 3 dont work [+previous+] [+pages+] [+next+]
    The total pages etc are correct.. only can’t go to the next page. Url adds: xxx.html?start=2

    I there anyone who can help me plz.
      Best CMS eva!
      • 16278
      • 928 Posts
      I tried cached and uncached
      Did you try Ditto call cached, page uncached? That normally works when you have PHx plugin installed.
      laugh KP
        • 9994
        • 133 Posts
        Hmm pritty weird indeed, if i set all pages uncached then it works, (had only overview page uncachd) only the "page 2 of 6" isn’t previewing ok, but i wanted to remove that anyway.
          Best CMS eva!
          • 16278
          • 928 Posts
          Yes, that does seem strange. You normally only need the cached call + uncached page on the overview. What does the template chunk look like?

          It won’t make any difference, but you don’t need &summarize=`2` at all -- it is an obsolete parameter, and Ditto will replace it with &display=`2`, which is also in your call.
          smiley KP
            • 9994
            • 133 Posts
            ok summarize is deleted ;x
            [[Ditto? &parents=`10` &tpl=`berichtinhoud` &paginate=`1` &paginateAlwaysShowLinks=`1` &language=`nederlands` &display=`8`]]
            
            <div id="ditto_pages"> [+previous+] [+pages+] [+next+] </div> 



            hmm, phx makes it go wrong sad

            if i change this into my template then my pagination is not correct.

            {{partijhandel}} -->
            [+phx:if=`[*parent*]`:is=`9`:then=`{{partijhandel}}`+][+phx:if=`[*parent*]`:is=`10`:then=`{{waspoeder}}`+]

            I’ll make a new template, its ok now.
              Best CMS eva!
              • 17304 ☆ A M B ☆
              • 13 Posts
              I’m sorry... I’m having the same problem.

              When I use ditto cached [[ ]] I get the previous/next etc. stuff but the pagination does not work as expected. I click on the link(s) but nothing happens. Maybe that’s expected.

              When I use ditto uncached [! !] I get a page which works in terms of pagination (I know because I insert the ?start=xx in the page address and it works allright), only

              (a) obviously there is no "?start=xx" on the url to begin with and
              (b) no next / previous etc., not even when I manually paste the start parameter - (I tried it in case the two were related).

              fourroses, I’m glad you sorted it out, but I’m not quite sure I understand what you did to solve this - or what caused in the first place...

              Your feedback would be appreciated...
                • 2777 ☆ A M B ☆
                • 5 Posts
                When I use ditto cached [[ ]] I get the previous/next etc. stuff but the pagination does not work as expected. I click on the link(s) but nothing happens. Maybe that’s expected.

                When I use ditto uncached [! !] I get a page which works in terms of pagination (I know because I insert the ?start=xx in the page address and it works allright), only

                (a) obviously there is no "?start=xx" on the url to begin with and
                (b) no next / previous etc., not even when I manually paste the start parameter - (I tried it in case the two were related).

                Exactly the same happens to me, anyone could help us?

                I’m using MODX 1.0.3
                  • 2777 ☆ A M B ☆
                  • 5 Posts