We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24495
    • 407 Posts
    When you click on ajaxSearch mode test (#142), you go directly on the first menu item (base #143). Is this solution solve your request ?
    Nice idea using a weblink instead of a document. But AS finds this weblink too. And I wish to exclude such results from the results list.

    Filtering like ditto would be nice (anytime) grin
      • 25551 ☆ A M B ☆
      • 1,231 Posts
      That loaded mootools that time! Still have the conflict with jquery though. I’m reading up how to use mootools accordion and then trying to use it with wayfinder. Thanks!
        Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
        AugmentBLU - MODX Partner

        BLUcart - MODX Revolution E-Commerce & Shopping Cart
        • 25551 ☆ A M B ☆
        • 1,231 Posts
        Look like there is problems with mootools working with other mootools libraries and effects. I just spent an hour sorting my menu to work under mootools and it is fine... I added the AS snippet call and neither work now. I made sure only one call to the mootools library was made but it’s not working. The accordion script requires mootools 1.2 to work but upgrading the JS for AS too 1.2 stops the AS search working.








          Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
          AugmentBLU - MODX Partner

          BLUcart - MODX Revolution E-Commerce & Shopping Cart
          • 5811
          • 1,717 Posts
          @Rasc
          Nice idea using a weblink instead of a document. But AS finds this weblink too.
          It’s right! But the question should be why AS search into reference document (link) ? As we exclude deleted document, unpublished document and non searcheable documents, it could be make sens to exclude link (type = reference) from the search too.
          Or like the &hideMenu parameter, offer a &hideLink parameter with a default value = 0 (excluded). wink
            • 5811
            • 1,717 Posts
            Which mootools library do you load ? The modx library, the mootools library provided with AS or an another mootools library ?

            Keep in mind that the AS mootools library : js/mootools-1.11.js is a package with the functions used ONLY by AS.
            So if you use an another mootools package, adds &addJscript=`0` to not load the AS mootools library.

            And may be, stay on mootools 1.11 rather to go on 1.2
              • 785
              • 2,113 Posts
              Has looked version 1.8 and has found out two defects, the staying from the previous versions.

              1. For the coding UTF8 at discrepancy of the register of letters highlighting does not work. It is connected to features of functions preg - it is necessary to add a key "u". In the file search.class.inc.php correction:
              $finalExtract = preg_replace( ’/’ . preg_quote( $searchTerm, ’/’ ) . ’/iu’, …
              and in the plugin searchHighlight:
              $pattern = ’/’ . preg_quote($word, ’/’) . ’(?=[^>]*<)/iu’;
              2. At use html entitys a scrap of a required fragment can give out only a part, for example &quo or something similar. For correction in the file search.class.inc.php at the beginning of function getExtract it is necessary to add something like:
              $text=html_entity_decode($text, ENT_QUOTES, "UTF-8");
              and at the end of function to correct a command approximately so:
              $finalExtract .= $extracts[$i][’etcLeft’] . htmlentities($mbSubstr($text,$extracts[$i][’left’],$extracts[$i][’right’] - $extracts[$i][’left’]+1), ENT_QUOTES, "UTF-8") …

              Naturally, all corrections are approximate, and are focused on UTF8, but problems need to be solved.

              I am sorry for my English rolleyes.
                Создание сайтов на MODx, поддержка сайтов, поисковая оптимизация, программирование, копирайтинг
                Статьи о MODx, регулярно новые публикации
                • 25551 ☆ A M B ☆
                • 1,231 Posts
                I disabled the mootools library that came with AS and used the latest off the mootools site and it stopped the AS working. I found another accordion menu and applied the jquery no conflict line and it appears to work on a test page so I’m working on that just now. It’s not a huge problem... I would prefer to have AS on my site than an accordion menu but if I can have both then that’s better. It just helps my menu stay a little tidier.

                I’ll report back shortly with the results.

                Thanks!
                  Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                  AugmentBLU - MODX Partner

                  BLUcart - MODX Revolution E-Commerce & Shopping Cart
                  • 24495
                  • 407 Posts
                  a &hideLink parameter
                  would be ok ... when? grin
                    • 5811
                    • 1,717 Posts
                    May before the end of this week. But before to deliver a beta1 with a lot of new features, i would like collect a maximum of remarks.
                      • 25551 ☆ A M B ☆
                      • 1,231 Posts
                      I’m having some trouble getting the highlight plugin to work. I created the plugin and I have OnWebPagePrerender clicked, yet the class isn’t appearing in words that I searched for.

                      I think I got it sorted but it’s not taking the css styling. What should the css class be to give the highlight a color?

                      .ajaxSearch_highlight ajaxSearch_highlight1 {color:red} in my ajaxsearch css didn’t work.


                      SORTED : I just edited the highlight plugin to reflect my own style <span style="color:red"> rather than <span class="’ . $class . ’">

                        Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                        AugmentBLU - MODX Partner

                        BLUcart - MODX Revolution E-Commerce & Shopping Cart