We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25286
    • 20 Posts
    i am using Ditto 1.0 on my home page with pagination:
    [!Ditto? &tpl=`basic-listing`&paginate=`1`&startID=`0`&hideFolders=`1`&summarize=`5`&sortBy=`pub_date`&truncText=`Lire la suite...`!] {{frontend-pagination}}

    here is my frontend-pagination chunk:
    <p id="pagination">Liste des articles <strong>[+start+]</strong> à <strong>[+stop+]</strong> sur un total de <strong>[+total+]</strong>.</p>
    <div id="link-pagination">[+previous+]  [+pages+]  [+next+]</div>
    

    w3c validation is not ok, because of [+pages+] which generate this source code
    <p id="pagination">Liste des articles <strong>1</strong> à <strong>5</strong> sur un total de <strong>27</strong>.</p>
    <div id="link-pagination">  <span id="ditto_currentpage">1</span><a class="ditto_page" href='index.php?id=1&start=5'>2</a><a class="ditto_page" href='index.php?id=1&start=10'>3</a><a class="ditto_page" href='index.php?id=1&start=15'>4</a><a class="ditto_page" href='index.php?id=1&start=20'>5</a><a class="ditto_page" href='index.php?id=1&start=25'>6</a>  <a href='index.php?id=1&start=5'>Next ></a></div>
     </div>
    

    problem with "&"
    see validation result: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.nekodesign.net%2F
    can you help me please, for going right de w3c validation
    ++
      Webdesign CSS, Webdevelopment and more ...http://nekodesign.net
    • In the output section, try changing the & to &amp; and see if that works.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 25286
        • 20 Posts
        sorry but what means "output section" ? (i m french !! grin)
        the only way is too change something in the core snippets ?
          Webdesign CSS, Webdevelopment and more ...http://nekodesign.net
        • In the part of the snippet that builds the data that gets (ultimately) outputted to the screen, change "&" to "&amp;".
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 18397
            • 3,250 Posts
            Thank you for finding this. Can you file it in the bugtracker? Thanks.
              • 25286
              • 20 Posts
              yeah! it goes right know :
              change line 596 in ditto.class.inc.php (function paginate):
              $char = "&";
              

              by this one:
              $char = "&";
              

              w3c validation is know ok, thanks ryan

              Can someone file it in the bugtracker please ?
                Webdesign CSS, Webdevelopment and more ...http://nekodesign.net
                • 18397
                • 3,250 Posts