We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7455
    • 2,204 Posts
    I am working on a site www.inbouwdak.nl that needs to be a startpage for people that look for sunroofs
    I have alist of dealers and for each dealer there will be a homepage conected.
    now i want this list to be more interactive that people can sort the list on name ore city to start with.
    but also a search function that people can type ther state (province) and get a list of dealers in that state.

    I know I can create lots of pages to do that but would be better to have some kind of snippet that connects with a database en give me the results for my search.

    I love to use Mod-X (it Rulz), but would it be a wise choice (and if not what to use)

    If somone has exirience making a site like this (lots of links sorted) or have a idea to get this to work, that would be great.

    Greets Dimmy
      follow me on twitter: @dimmy01
      • 25663 MODX Staff
      • 12,272 Posts
      I think you could created a little addition to do this without having to created a seperate page. Then again, if each dealer is going t have a site, those site pages could be used to build the link list...
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        I had a similar situation, a database of translation terms, in four languages. I set it up so that only certain (web) users could see the terms for certain items, plus they can sort by any of the language fields. It required a page with a form across the top, at the top of each column was a "submit" button, and the php file the form called would query the database with a SORT BY depending on which button the user clicked. Your situation would be easier. Make weblink documents, and modify a regular menu snippet to sort the query by the user’s choice (links = $_GET[’sortby’], form buttons = $_POST[’sortby’]). Or you could get fancy and sort the list in the browser with Javascript!
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org