We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16430
    • 217 Posts
    Hi, I have few troubles with simplesearch.
    1. It transform special characters in searched words like "džungle" (czech language) to "d%C5%BEungle" in URL, which returns no results...

    2. It search in TV’s by default, including tv with image url, that contains image name (image.jpg). So if I search for "image" it return result with article that contains <img src="image.jpg" />. I want to exclude this TV, is it possible?

    3. It doesnt include link in page numbers. For example <a href>2</a> instead of <a href="linkt-to-second-page-of-results">2</a>
    UPDATE: this is a bug:
    https://github.com/splittingred/SimpleSearch/issues/51

    Chunk sub-template:
    [[!SimpleSearchForm?  &tpl=`Search` &landing=`[[+search-landing]]` ]]

    tpl Search:
    <form  class="sisea-search-form" action="[[~[[+landing]]]]"  method="get"]]">
    <input type="text" name="[[+searchIndex]]" id="[[+searchIndex]]" value="Search..." />
    <input type="submit" value="[[%sisea.search? &namespace=`sisea` &topic=`default`]]"  />
    </form>


    5. method="post" in form returns no results, only method="get" works, why?

    I am using contexts for multiple sub-domains, but it might have no effect on these errors..

    Thanks for help
      • 16430
      • 217 Posts
      Maybe a solution for wrong encoding in URL would be in using method post.
      But method="post" does return no results at all... only get works...