We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33982 ☆ A M B ☆
    • 476 Posts
    I’ve got a site that is quickly growing. The pagination results are getting a bit long. I need to shorten the pagination down like so:

    < 1 2 3 ... 10 11 12 >

    Basically remove the middle pagination links. Is that possible?
      Precision Web Development ... SmashStack.com
      • 22303 MODX Staff
      • 10,725 Posts
      Can you describe the pagination links? I don’t think anyone knows what you are asking about. What pagination?
        • 33982 ☆ A M B ☆
        • 476 Posts
        Sorry...here’s the Ditto call with Pagination:
        <div class="blog_pagination">
        	<div class="blog_pagination_text">
        		Showing <strong>[+search_results_start+]</strong> - <strong>[+search_results_stop+]</strong>
        		of
        		<strong>[+search_results_total+]</strong> Items
        		|
        		Page <strong>[+search_results_currentPage+]</strong> of <strong>[+search_results_totalPages+]</strong>
        	</div><!-- end .blog_pagination_text -->
        	<div class="blog_pagination_numbers">
        		[+search_results_previous+]
        		[+search_results_pages+]
        		[+search_results_next+]
        	</div><!-- end .blog_pagination_numbers -->
        </div><!-- end .blog_pagination -->
        
        <div class="cigar_search_results_container">
        
        [[Ditto? &id=`search_results` &parents=`22` &depth=`4` &tpl=`search_results_tpl` &sortBy=`pagetitle` &hideFolders=`1` &sortDir=`ASC` &paginate=`1` &paginateAlwaysShowLinks=`1` &display=`20` &extenders=`request` &debug=`0` &hiddenFields=`product_price_range` ]]
        
        <div class="clear"> </div>
        </div><!-- end .cigar_search_results_container -->
        
        <div class="blog_pagination pagination_bottom">
        	<div class="blog_pagination_text">
        		Showing <strong>[+search_results_start+]</strong> - <strong>[+search_results_stop+]</strong>
        		of
        		<strong>[+search_results_total+]</strong> Items
        		|
        		Page <strong>[+search_results_currentPage+]</strong> of <strong>[+search_results_totalPages+]</strong>
        	</div><!-- end .blog_pagination_text -->
        	<div class="blog_pagination_numbers">
        		[+search_results_previous+]
        		[+search_results_pages+]
        		[+search_results_next+]
        	</div><!-- end .blog_pagination_numbers -->
        </div><!-- end .blog_pagination pagination_bottom -->
        
        


        Essentially the pagination links have grown very large and wanted shave them down to have the first 5 and last 5 ... something along those lines. Not sure if that’s doable.
          Precision Web Development ... SmashStack.com
          • 18913
          • 654 Posts
            • 33982 ☆ A M B ☆
            • 476 Posts
            Nice...that did the trick...used this snippet: http://modxcms.com/extras/package/97 ... thnx for the help!
              Precision Web Development ... SmashStack.com