We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1978
    • 131 Posts
    Ditto call
    [!Ditto?&parents=`295` &tpl=`NewsListing` &dateSource=`pub_date` &dateFormat=`%d.%m.%Y` &sortBy=`pub_date` &paginate=`1` &summarize=`20` &tplPaginatePrevious=`NewsPrev` &tplPaginateNext=`NewsNext` &extenders=`summary` &truncText=`äàëåå` &tplTrunc=`LinkDetailed` &paginateSplitterCharacter=`z` !]
    {{NewsPagination}}

    Pagintaion chunk

    <p>Ïîêàçàíû <strong>[+start+]</strong> - <strong>[+stop+]</strong> èç <strong>[+total+]</strong> |
    Ñòðàíèöà <strong>[+currentPage+]</strong> èç <strong>[+totalPages+]</strong></p>
    <div>[+previous+] [+pages+] [+next+]</div>
    [+prevnextsplitter+]

    But pagination still looks like
    Ïîêàçàíû 1 - 20 èç 215 | Ñòðàíèöà 1 èç 11
    1234567891011 Âïåðåä >>


    I guess that this parameter should make it look like

    1z2z3z4z5z6z7z8z9z10z11 Âïåðåä >>


    Am i wrong? I can write it by myself but i don’t want to change ditto file for futher compatibility and i think this option exists here.
      Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
      QuickEdit под win-1251 без mb_-функций
      • 1978
      • 131 Posts
      temporary measure is changing ditto.class.inc.php line 119

      for ($x = 0; $x <= $totalpages -1; $x++) {
        $inc = $x * $summarize;
        $display = $x +1;
        if ($inc != $start) {
      //        $pages .= "<a class=\"ditto_page\" href='".$this->buildURL("start=$inc")."'>$display</a>";
          $pagesAr[] = "<a class=\"ditto_page\" href='".$this->buildURL("start=$inc")."'>$display</a>";
        } else {
          $modx->setPlaceholder($dittoID."currentPage", $display);
      //        $pages .= "<span class=\"ditto_currentpage\">$display</span>";
          $pagesAr[] = "<span class=\"ditto_currentpage\">$display</span>";
        }
      }
      $pages .= implode ( $paginateSplitterCharacter, $pagesAr );
      
        Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
        QuickEdit под win-1251 без mb_-функций
        • 18397
        • 3,250 Posts
        Unfortunately, I am unable to located the thread where I originally explained this. For reference, another thread discussing the same issue is here.

        To explain, &paginateSplitterCharacter was written before &paginateAlwaysShow (where the previous and next text will always show). It was designed to split Previous and Next up if both were present ala "< Previous | Next >" and be empty when only one was ala "Next >".

        Now, should this parameter be changed to split individual pages in the [+pages+] array as described by Aramaki and others? Please vote in the poll at the top of the thread.
          • 1978
          • 131 Posts
          I’ve read this thred before - it doesn’t answer my question.

          May be you should put the answer to ditto parameters documentation - the description of pageinteSplitterCharacter is vague.

          If update ditto core code this parameter should stay for backward compatibility and may be somebody uses it and my thing should be named like paginationListSplitter for example.
            Как русифировать Modx 0.9.6.1(QuickEdit, TinyMCE)
            QuickEdit под win-1251 без mb_-функций