We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1511
    • 144 Posts
    Since my MODx web sites are not in english but use UTF-8 and some foreign characters (well, foreign to most of you wink ), I’ve got a small problem. Even though using UTF-8 as my charset, a one and only char is converted to entity "š" and thus, cannot be searched for.

    My suggestion would be to "synchronize" the search string with the form of data stored locally in the database.
    So, prior of executing the search SQL query, convert she search string to the same entity coded string.
      • 21800
      • 174 Posts
      as I’ve said before all content is completely stored in utf8 (Tinymce storing set to raw). Remember the content is shown correctly on the "moreResultsPage".
      So from my point of view the display funktion of AS doesn’t work propperly (but I’m not a coder, only an author (with IT interest) - one of those persons the system might be written for).
        • 33992 ☆ A M B ☆
        • 455 Posts
        Hi,
        i have a question about CSS styles.
        how can i use the classes of ajaxSearch?
        it means, where should i add class="..." (or like it) to my search?

        Regards
        AHHP
          God loves me. 【ツ】


          MODX.ir (Persian Support)

          Boplo.ir/modx/ (Persian)
          • 8619
          • 229 Posts
          @ Albert;

          You can style them anyway you would like. Here is my CSS code for my ajax search form and results, hope that gets you started!

          #ajaxSearch_form {padding: 10px; margin: 20px; border: 1px solid #333;}
          #ajaxSearch_input {width: 140px; margin: 15px 5px;}
          #ajaxSearch_submit {margin: 15px 10px; }
          #ajaxSearch_output {padding: 15px; border: 1px solid black; }
          #ajaxSearch_resultListContainer {padding: 10px; border: 1px solid #333; }
          .ajaxSearch_intro {display: none; }
          .ajaxSearch_result {border-bottom: 1px dotted #333; padding: 10px; }
          .AS_ajax_result {border-bottom: 1px dotted #333; padding: 10px; }
          .ajaxSearch_resultLink {margin: 0 10px; }
          .AS_ajax_resultLink {margin: 0 10px; }
          .ajaxSearch_resultDescription {padding: 15px;}
          .AS_ajax_resultDescription {padding: 15px; }
          .ajaxSearch_extract {margin-left: 15px; padding: 10px; background: #eee;}
          .AS_ajax_extract {margin-left: 15px; padding: 10px; background: #eee;}
          .AS_ajax_highlight1 {font-weight: bold; background: #ff9; color: red;}
          .ajaxSearch_highlight1 {font-weight: bold; background: #ff9; color: red;}
            • 12421
            • 19 Posts
            Hi all,

            I am really running in a catastrophe with AjaxSearch, I am stuck with multiple problems and here comes the list ;-)

            1) there should be a clear link to the documentation of the tool from here http://modxcms.com/AjaxSearch-490.html. For Docs look here http://www.muddydogpaws.com/development/ajaxsearch/parameters.html

            2) the download page at http://www.muddydogpaws.com/development/ajaxsearch/download.html says it’s version 1.6. All the documentation in the ajaxSearch_readme.txt and the snippet-ajaxSearch-tpl.php itself in the zip-file says it is still version 1.5. What’s up now with the versions? Where can I get a complete set of files with version 1.6?

            3) index-ajax.php is not included in the zip-file but the docs say: put it into the root of your installation. How can I put something when it’s not included?

            4) there should be examples for a call a) as ajax enabled search and b) as normal search with output at an additional search page. In the docs it is not clearly defined how I can reach a search without ajax enhancements (just a plain search functionality). How does the call of the form have to look, how the call for the landing page?

            5) for a non-ajax search: is a ajaxsearch call in the results/landing page necessary? Or only if there should be a (second) search form too?

            6) It is not clear if and which parameters depend on each other for plain search.

            This cost me 10 hrs now and you can imagine I am not happy any more. If you can not see which version you are running it becomes impossible to have a plain start with everything test stuff deleted before and so debugging becomes difficult.

            My call for the search box (I am on a 096RC1 install):
            [!AjaxSearch? &ajaxSearch=`0` &addJscript=`0` &AS_landing=`166` &showMoreResults=`1` &moreResultsPage=`166`!]

            I apreciate the work of the developers but a lot of additional effort rises without clear docs.

            Thanks for any support in this unhappy situation (at least this should be a simple thing, shouldn’t it?),

            Henning
              Usually when things have come so far,
              people tend to disappear.

              MODx Revolution Multi-Domain Installation Tutorial | MODxCMS Webentwicklung Frankfurt Rhein-Main
              • 25663 MODX Staff
              • 12,272 Posts
              Hello Henning,

              Download the latest 096 RC for a full demonstration of it working in AjaxSearch mode in the demo content. If you’re running 096 RC, then you already have the index-ajax.php installed and the latest AjaxSearch code, or at least you should. If not re-run the installer in upgrade mode and select the relevant resources after updating your files to the latest version in your resources folder. FYI, RC3 (just released) is much more robust than the previous releases and fixes many little issues.
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 17622
                • 39 Posts
                Quote from: hquadrat at Apr 25, 2007, 07:53 AM

                Hi all,

                I am really running in a catastrophe with AjaxSearch, I am stuck with multiple problems and here comes the list ;-)

                1) there should be a clear link to the documentation of the tool from here http://modxcms.com/AjaxSearch-490.html. For Docs look here http://www.muddydogpaws.com/development/ajaxsearch/parameters.html

                Fair enough, but it’s not difficult to find the docs from the author’s site link, provided.

                Quote from: hquadrat at Apr 25, 2007, 07:53 AM

                2) the download page at http://www.muddydogpaws.com/development/ajaxsearch/download.html says it’s version 1.6. All the documentation in the ajaxSearch_readme.txt and the snippet-ajaxSearch-tpl.php itself in the zip-file says it is still version 1.5. What’s up now with the versions? Where can I get a complete set of files with version 1.6?

                Can’t say I noticed that, jus checked and yes it does. It’s possible that the other files have changed, which has increased the minor revision number by 1.

                Quote from: hquadrat at Apr 25, 2007, 07:53 AM

                3) index-ajax.php is not included in the zip-file but the docs say: put it into the root of your installation. How can I put something when it’s not included?

                I mailed him about this and his reply was that it was distributed in the MODx archives, so that’s not changed then.

                I’ve still not had a reply back about the fact that the AjaxSearch doesn’t work when you’re logged into the web front end!!

                Quote from: hquadrat at Apr 25, 2007, 07:53 AM

                4) there should be examples for a call a) as ajax enabled search and b) as normal search with output at an additional search page. In the docs it is not clearly defined how I can reach a search without ajax enhancements (just a plain search functionality). How does the call of the form have to look, how the call for the landing page?

                5) for a non-ajax search: is a ajaxsearch call in the results/landing page necessary? Or only if there should be a (second) search form too?

                Dunno.

                Quote from: hquadrat at Apr 25, 2007, 07:53 AM

                6) It is not clear if and which parameters depend on each other for plain search.

                This cost me 10 hrs now and you can imagine I am not happy any more. If you can not see which version you are running it becomes impossible to have a plain start with everything test stuff deleted before and so debugging becomes difficult.

                My call for the search box (I am on a 096RC1 install):
                [!AjaxSearch? &ajaxSearch=`0` &addJscript=`0` &AS_landing=`166` &showMoreResults=`1` &moreResultsPage=`166`!]

                I apreciate the work of the developers but a lot of additional effort rises without clear docs.

                Thanks for any support in this unhappy situation (at least this should be a simple thing, shouldn’t it?),

                Henning


                Yeah, I can see your problems here as I’ve also had them.

                Thanks,
                Luke.
                  • 25663 MODX Staff
                  • 12,272 Posts
                  Quote from: hquadrat at Apr 25, 2007, 07:53 AM

                  This cost me 10 hrs now and you can imagine I am not happy any more. If you can not see which version you are running it becomes impossible to have a plain start with everything test stuff deleted before and so debugging becomes difficult.
                  ...
                  I apreciate the work of the developers but a lot of additional effort rises without clear docs.

                  Thanks for any support in this unhappy situation (at least this should be a simple thing, shouldn’t it?),

                  Consider comments like that—no matter what the real intention or meaning—in light of the dev team who has generously invested more than 20,000 hours and happily gives away their hard work with no strings attached. Kyle’s not being paid to work on MODx/Ajax Search, on the contrary he’s just moved to a new state for a new job so I respectfully ask for some patience on his behalf.
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 1511
                    • 144 Posts
                    Quote from: hquadrat at Apr 25, 2007, 07:53 AM

                    4) there should be examples for a call a) as ajax enabled search and b) as normal search with output at an additional search page. In the docs it is not clearly defined how I can reach a search without ajax enhancements (just a plain search functionality). How does the call of the form have to look, how the call for the landing page?
                    For search with no ajax functionality, just add parameter &ajaxSearch=`0`.

                    5) for a non-ajax search: is a ajaxsearch call in the results/landing page necessary? Or only if there should be a (second) search form too?
                    Yes, it is. Check this post http://modxcms.com/forums/index.php/topic,5357.msg90141.html#msg90141for a non ajax call, with bolh calls - for search form and for landing page.

                    6) It is not clear if and which parameters depend on each other for plain search.
                    I believe that the parameters are self explanatory, otherwise give it ten minutes and test some calls.
                    If you are using AjaxSearch 1.5 or the one distributed prior of MODx096-RC2, check this thread for some adjustments if the form on the lading page is not properly shown.
                      • 15987
                      • 786 Posts
                      ok, folks... I am starting to get back up to speed here and will try to get everything packaged up nice and pretty in the near future.

                      as for documentation, there will probably not be to much development on that front, as things should be changing quite a bit in terms of searching once the new core is out. so post questions in the forum and the community and myself will do our best to answer them.

                      This discussion is closed to further replies. Keep calm and carry on.