We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5811
    • 1,717 Posts
    A new post to collect questions and remarks about how-to use AS 1.8.0 with your own custom tables.

    A first example "with your own tables" presents how to use AS with a custom product catalog. All the explanations and files used are on the demo site.

    A second example with some joined tables (stocks and providers) is coming soon.
      • 5811
      • 1,717 Posts
      Search into the products catalog (PDA) is a bit limited. Find in which shop a product is available and get informations about the provider, is more interesting ... grin

      "With your own tables - 2" demo, explain step by step throught an example, how to use AjaxSearch with several Non-MODx custom tables (have a look to the schema in the middle of explanations).

      Try for instance "phone" or "HTC" as search term.
        • 18367
        • 834 Posts
        Coroico,

        so can this version search a database?

        smiley
          Content Creator and Copywriter
          • 7231
          • 4,205 Posts
          I think Coroico is on vacation. According to the docs it will work with your own tables. Looks like you can tie the tables in with modx documents as well. It does look a bit complicated to set up but seems to allow a lot of configuration.
            [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

            Something is happening here, but you don't know what it is.
            Do you, Mr. Jones? - [bob dylan]
            • 18367
            • 834 Posts
            Yeh, I’m staring at the code on http://www.modx.wangba.fr/index.php?id=180 and thinking "Where the hell do I start?

            Hope he comes back soon, I mean who would go on holidays in France in the summer?

            uh, well actually I would.

            grin
              Content Creator and Copywriter
              • 25663 MODX Staff
              • 12,272 Posts
              It will in fact search in custom tables. See his support site for examples until he returns in September. Good luck!
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 7231
                • 4,205 Posts
                markg, yeah, it looks a bit overwhelming. However, all the information is documented very well. I am curious to try this out and will give it a go during some free time, just don’t know when that will be. Keep us informed on your progress, this is a cool new feature.
                  [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                  Something is happening here, but you don't know what it is.
                  Do you, Mr. Jones? - [bob dylan]
                  • 18367
                  • 834 Posts
                  OK, progress so far.

                  I’ve managed to get Search within your own tables option 2 working to a point.

                  That is, I’m not getting any database errors and the page almost, sort of looks like it should when I load it. See screenshot.

                  But at this stage it doesn’t actually do anything.

                  I suspect it either can’t find the database or the required information in it.

                  I followed Coroico’s instructions slavishly, but I need some pointers as to what to do next.

                  Thanks in advance.
                    Content Creator and Copywriter
                    • 18367
                    • 834 Posts
                    Coroico,

                    welcome back.

                    While you were away I managed to get only so far with the search within your own tables example.

                    See http://httpwix.s.customers.ilisys.com.au/help-utilities/ajax-own-tables-search

                    for how far I got. I think it’s a miracle I got this far actually.

                    Anyway, I was wondering if you could help me get this working.

                    I figure if I can get your example working then I’lll be able to apply that to my own actual tables.

                    Thanks
                      Content Creator and Copywriter
                      • 7231
                      • 4,205 Posts
                      markg: did you load the data into the custom database table?
                        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                        Something is happening here, but you don't know what it is.
                        Do you, Mr. Jones? - [bob dylan]