ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

advanced search : any words, all words, phrase

January 09, 2009 7:46am

Subscribe [2]
  • #1 / Jan 09, 2009 7:46am

    CimexMedia

    68 posts

    Hello

    this is a repost from the How-to section where I got no answers

    Is it possible to customize the advanced search form, to let the user choose if the search must apply to :

    - all keywords (I do not know how to do this…)
    - any keywords (that’s the default)
    - the exact sentence (enclosing the words between quotes works)

    ideally, the user should be able to select this through radio buttons

    Thanks

  • #2 / Jan 09, 2009 11:21am

    Ingmar

    29245 posts

    Yes, take a look at the advanced search form:

    <div class="default">
    <select name="where">
    <option value="exact" selected="selected">{lang:exact_phrase_match}</option>
    <option value="any">{lang:search_any_words}</option>
    <option value="all" >{lang:search_all_words}</option>
    <option value="word" >{lang:search_exact_word}</option>
    </select></div>

    You’d simply need to set the “where” field to either “all” or “word”, using standard HTML form controls. Makes sense?

  • #3 / Jan 12, 2009 7:58am

    CimexMedia

    68 posts

    Thanks !

  • #4 / Jan 12, 2009 11:20am

    Pascal Kriete

    2589 posts

    Glad Ingmar square you away.

    Please don’t hesitate to post again if you need further assistance.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases