We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7527
    • 437 Posts
    I was originally trying to have an a-z search (i,e - A|B|C|D|E), but I could not work out the extenders. So now I have a Ditto call as follows

    [[Ditto? &parents=`71` &depth=`2` &display=`all` &sortBy=`pagetitle` &summarize=`10` &paginate=`1` &paginateAlwaysShowLinks=`1`]]
    <p>Showing <strong>[+start+]</strong> - <strong>[+stop+]</strong> of <strong>[+total+]</strong> Articles | Page <strong>[+currentPage+]</strong> of <strong>[+totalPages+]</strong></p> <div id="ditto_pages"> [+previous+] [+pages+] [+next+] </div> </div>

    Firstly it lists results in reverse alphabetical order, which I would like to change. And secondly the next page link just keeps returning me to page 1. I am very new to ditto, and any help would be greatly appreciated
      www.PawsForWildlife.co.uk
      www.Borntobrick.co.uk
      • 16278
      • 928 Posts
      Replace &sortBy=`pagetitle` with &orderBy=`pagetitle ASC` (or add an ordering parameter, &sortBy=`pagetitle` &sortDir=`ASC`) to sort in ascending order.

      Pagination: the Ditto call has to be uncached, i.e. [!Ditto? &parents=`71` ... !] for pagination to work.

      Also, &summarize is an obsolescent parameter - in Ditto 2.1 it’s called &display.

      smiley KP
      More Ditto with examples on Pogwatch
        • 7527
        • 437 Posts
        Thanks KP52 taht works great. Is there a way to add an alphabet list to the top (A-z) and when user clicks ’A’ all pages beginning with ’A’ are shown in results, etc, etc, for the whole alphabet? I saw something on a Glossary extender filter but didn’t quite understand it
          www.PawsForWildlife.co.uk
          www.Borntobrick.co.uk
          • 16278
          • 928 Posts
          I saw your posts in the thread on Alik’s Glossary extender for Ditto, and have replied there regarding the way you hook the extender into Ditto. I should think you could use this method as it comes, with 26 Ditto calls created manually or by a loop in a wrapper snippet, but it might be expensive in terms of resources.
          smiley KP