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
    So I’ve got a site I’m building for which there will be products listed on a page. I am going to set it up to display 12 products per page and incorporate pagination so the visitor can go from page to page. The client also wanted though the ability to have a "View All" feature by which the visitor could display all the products on the page as opposed to having to go from page to page using pagination. So if we had 48 products, there would be 4 pages with 12 products each displayed. But if the visitor were to click "View All", all 48 of those products would be listed on the one page. Anyone seen scripts that produce that type of dynamic content in relation to Ditto?

    Thanks!
      Precision Web Development ... SmashStack.com
      • 29635
      • 361 Posts
      Short answer: http://ditto.modxcms.com/extenders/request.html

      You should be able to pass in the &display parameter in the "view all" link. Only issues (I think) would be cached/uncached (particularly if you’ve got PHx going) and the ID of the Ditto call.
        Need MODx Ecommerce? Try FoxyCart!
        • 33982 ☆ A M B ☆
        • 476 Posts
        Thanks Brett,

        I’ll look that over and try to figure it out ... thanks!
          Precision Web Development ... SmashStack.com