how to configure site search.

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
Mariasol
 
 
Posts: 30
Joined: Tue Feb 08, 2022 9:19 am

how to configure site search.

Post by Mariasol »

I am looking for:
    how to refresh the search button after use so that the keyword of the previous search no longer appears.for example with the events of the button that closes the search layer but I can't find
      In general we can configure the close button but it does not appear
        how to make the keywords to search for are whole and not part of another possible word ex:
        the word "pita" in the search I find "capitainerie" I would only like either to search for the word pita

        Thank you for your help
        User avatar
        Pablo
         
        Posts: 21578
        Joined: Sun Mar 28, 2004 12:00 pm
        Location: Europe
        Contact:

        Re: how to configure site search.

        Post by Pablo »

        The input field for search does not have dedicated 'clear' button.
        But you can use events and the following code:

        Code: Select all

        document.getElementById('SiteSearch1_form').reset();
        The 'close button' property applies to the 'dialog' functionality.

        The built-in site search uses JavaScript, so it has limited query functionality.
        If you want more advanced options, then you will have to install a database based search script on the server.
        Mariasol
         
         
        Posts: 30
        Joined: Tue Feb 08, 2022 9:19 am

        Re: how to configure site search.

        Post by Mariasol »

        the code works fine to clear the input field but how to also clear the search results that appear in a layer ?
        I tried several possibilities in the events but I can't find it.

        THANKS
        User avatar
        Pablo
         
        Posts: 21578
        Joined: Sun Mar 28, 2004 12:00 pm
        Location: Europe
        Contact:

        Re: how to configure site search.

        Post by Pablo »

        There is no option to clear the results in a layer. You will need to implement a custom script for this.
        wwonderfull
         
         
        Posts: 1255
        Joined: Fri Aug 21, 2020 8:27 am

        Re: how to configure site search.

        Post by wwonderfull »

        I think it maybe possible. If you need help with custom scripts you can contact me by my site below.
        Post Reply