Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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>
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
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> </xsl:text> </xsl:if>
Hello Fuji,
Thanks for reply.
I got the solution.
I didn't add the name="Search" to
now it works.
Thanks again.
is working on a reply...
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.
Continue discussion
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
Hi,
From the code you posted your is setsearchBoxLocation to "top" try changing it to
If this not working try looking for this line in your XSLTSearch
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.
is working on a reply...
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.