We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28215
    • 4,149 Posts
    This is an auto-generated topic for SimpleSearch 1.1.1-rc1 by splittingred.

    Brief Description:

    A simple search solution for MODx Revolution. Loosely based on AjaxSearch for Evolution (minus the ajax). Only searches Resources; does not search dynamic content.
    New in 1.1.1

    • Added idx placeholder
    • Added andTerm (true/false) - Whether or not to add a logical AND between words in search term.
    • Added matchWildcard (behavior depending on query type and limitations)
    • Added docFields which is a list of fields to search on the Resource.

    New in 1.1.0

    • Added ability to use TVs in placeholders
    • Added missing f parameter if ids was empty
    • Added longtitle to partial search style
    • Fixed XHTML get/post in form tpl issue

    See the official documentation here:
    http://rtfm.modx.com/display/addon/SimpleSearch/
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • 2690
      • 148 Posts
      Have a weird bug with redirecting the results to a different landing page.
      My search snippet call looks like this:
      [[SimpleSearchForm? &landing=`2420` &tpl=`SimpleSearch`]]


      • If i search when i’m on the root level (homepage) everything works fine: /search-results?id=2420&search=kim (not sure why there is an ID in the url of that landing page, but this is for another discussion)
      • If i search on a sub level (ie: /sports/), that page gets added to the url thus breaking it: /sports/search-results?id=2420&search=kim

      Am i doing something wrong?

      Thanks!
      Aleks
        MODx Revo 2.0.6-pl (Traditional) | Apache 2.2.3 | PHP 5.2.14 | MySQL 5.0.77 | MAC OS 10.6.5 | FF 3.6/Chrome 9.0.5
        • 2690
        • 148 Posts
        my bad... realized that i didnt have a / in the action for the search form:

        <form action="/[[~[[+landing:default=`[[*id]]`]]]]" method="[[+method:default=`get`]]">
          MODx Revo 2.0.6-pl (Traditional) | Apache 2.2.3 | PHP 5.2.14 | MySQL 5.0.77 | MAC OS 10.6.5 | FF 3.6/Chrome 9.0.5
          • 25287
          • 81 Posts
          Thank you for producing a very helpful snippet.

          I’m wondering how to modify the look of the search (form?). What I want to change is the text to the left of the input text area. I’ve found that going into lexicon management the text can be changed, but it also changes the text of the button.

          My guess is that it should be possible to create a new lexicon entry so that the text and button have different values. However i don’t know enough to change the snippet code. I suspect it would be relatively simple.

          Thanks for any help.

          Rob