Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Yadwinder singh 43 posts 112 karma points
    Jul 23, 2013 @ 06:56
    Yadwinder singh
    0

    XSLTsearch

    Hi,

    I installed the xsltsearch package and it works fine.\

    But problem is that when i use it on the master page,

    <form method="post" action="search.aspx" class="form-search" style="padding-left:40px;margin-top:15px;margin-bottom:0px;">

    <input type="text" class="search-query" placeholder="Type to search...."/>

    <button class="btn">Search</button>

    </form>

    and the macro is called as:

    <form runat="server">

        <umbraco:Macro source="-1" searchFields="@nodeName,tittle,description,heading,date,summary" previewFields="tittle,description" searchBoxLocation="top" previewType="BEGINING" resultsPerPage="5" previewChars="255" showPageRange="0" showOrdinals="0" showScores="0" showStats="1" Alias="XSLTsearch" runat="server"></umbraco:Macro>

    </form>

    when i searches anything,it redirects to search.aspx and here again shows the serachbox and button through which I gets the result.

    and

    when I sets searchBoxLocation="none".it doesn't work 

  • Fuji Kusaka 2203 posts 4220 karma points
    Jul 23, 2013 @ 08:44
    Fuji Kusaka
    0

    Hi,

    From the code you posted your is setsearchBoxLocation  to "top" try changing it to

    searchBoxLocation="None" 

    If this not working try looking for this line in your XSLTSearch

    <xsl:if test="$unescapedSearch='' and $searchBoxLocation='NONE'">
            <xsl:text>&nbsp;</xsl:text>
          </xsl:if>
  • Yadwinder singh 43 posts 112 karma points
    Jul 23, 2013 @ 09:21
    Yadwinder singh
    0

    Hello Fuji,

    Thanks for reply.

    I got the solution.

    I didn't add the name="Search" to

    <input type="text" class="search-query" placeholder="Type to search...."/>

    now it works.

    Thanks again.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies