We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25663 MODX Staff
    • 12,272 Posts
    Totally missed those. lol
      Ryan Thrash, MODX Co-Founder
      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • 19986
      • 90 Posts
      English version.
        • 17883
        • 1,039 Posts
        thx steph smiley
          • 18397
          • 3,250 Posts
          One word...AWESOME!!!

          Marc --- THIS ROCKS!!!
            • 32963
            • 1,732 Posts

            Very nice snippet Marc!
            Does your version also searchs the summary fields?

            The only thing that’s needed now for this snippet is for it to support more input params and a template (&tpl)
              xWisdom
              www.xwisdomhtml.com
              The fear of the Lord is the beginning of wisdom:
              MODx Co-Founder - Create and do more with less.
              • 6102
              • 17 Posts
              MyFlexSearchForms works Great! I am using the one with the Highlight feature and it is really neat.

              I do have a major problem with it, however.

              I have placed Multiple Content areas (TVs) on the template so that the enduser can manage different areas of the page.

              >>>>>Begin Example:

              [*#LeftContent1*] [*#Content*] [*#RightContent1*]

              [*#LeftContent2*] [*#Content2*] [*#RightContent2*]

              >>>>>End Example:

              Is there anyway to force the FlexSearchForm search All Tvs on the entire site?

              I don’t think we want to use the Tvars... We do not want to choose TVs from a dropdown list... we want to search all the TVs on the whole site.

              Thanks,

              ctusa
                • 28373
                • 204 Posts
                Quote from: MadeMyDay at Feb 07, 2006, 03:01 PM

                Hi,

                I just modificated the FlexSearchForm a bit and think perhaps someone is interested in it wink My problem was that I built a site and didn´t fill out the description of the pages and so the search results are not that informative (as the results on the modxcms page). That was the first time I found something that joomla does better, so I transferred that functionality to modX.

                What it does: With displaying search results you´ll get an extract of the context with highlighted search term. Also multiple words are possible and are highlighted the google way wink

                See example here:

                www.mademyday.de/ifa

                Search for example for "familie" (german site), you will see what it does.

                In the snippet you can configure the variable $extract to either true or false, which will (surprise!) show the extract or not. There are two CSS classes used, FSF_extract for the div container with the extract and a span class called FSF_highlight for highlighting the text in this extract (yellow background in the example above)

                This is not the standard FSF, I translated some words and changed a few settings, but I think you guys will get it (no time to put in the standard FSF yet).

                Greetz Marc

                EDIT: New version with different colors for every phrase (FSF_highlight1, FSF_highlight2 etc.)

                Thank you this is great. I’ve tried both versions, the english version - does anyone know where the <pre> tags are coming from ? I’ve searched the snippet but can’t find any pre tags in use - really weird. There’s also an unclosed <p> tag that’s an IE6 layout killer, it doesn’t cause any problems in FF.

                Actually, if you validate one of the results pages you’ll see the error.
                  • 10487 MODX Staff
                  • 1,535 Posts
                  Hi Starbuck,

                  On the pre tags - check the Search Results page, where you actually inserted the snippet - you might find the <pre> tags have been created on a copy/paste or by the RTE on one of it’s quirkier moments.

                  Cheers, Garry

                  EDIT: I’m also guessing that the <p> tag problem is a by-product caused by the browser trying to sort out the <pre> tags.
                    Garry Nutting
                    Senior Developer
                    MODX, LLC

                    Email: [email protected]
                    Twitter: @garryn
                    Web: modx.com
                    • 28373
                    • 204 Posts
                    Quote from: garryn at Apr 03, 2006, 06:36 PM

                    Hi Starbuck,

                    On the pre tags - check the Search Results page, where you actually inserted the snippet - you might find the <pre> tags have been created on a copy/paste or by the RTE on one of it’s quirkier moments.

                    Cheers, Garry

                    EDIT: I’m also guessing that the <p> tag problem is a by-product caused by the browser trying to sort out the <pre> tags.

                    100 percent correct! I’ll remember to look next time, naughty pre made the output as stiff as a board chopping it’s way through the entire right column smiley

                    Thanks Garry!
                      • 32922
                      • 3 Posts
                      Marc and Steph,
                      Thanks for this colorful modification wink

                      Greeting,
                      Ray

                      www.zonnestroomsystemen.nl