Umbraco XSLTsearch如何将查询字符串添加到搜索结果URL
如何将查询字符串添加到XSLT搜索结果URL 单击“提交”按钮时,我希望查询字符串显示在URL中: e、 g/search results.aspx?search=redUmbraco XSLTsearch如何将查询字符串添加到搜索结果URL,url,search,xslt,query-string,umbraco,Url,Search,Xslt,Query String,Umbraco,如何将查询字符串添加到XSLT搜索结果URL 单击“提交”按钮时,我希望查询字符串显示在URL中: e、 g/search results.aspx?search=red <xsl:if test="$searchBoxLocation='TOP' or $searchBoxLocation='BOTH'"> <div class="xsltsearch_form"> <input name="search" type="text" class="inp
<xsl:if test="$searchBoxLocation='TOP' or $searchBoxLocation='BOTH'">
<div class="xsltsearch_form">
<input name="search" type="text" class="input">
<xsl:attribute name="value">
<xsl:value-of select="$unescapedSearch"/>
</xsl:attribute>
</input>
<xsl:text> </xsl:text>
<input type="submit" class="submit">
<xsl:attribute name="value">
<xsl:value-of select="$dictionaryButton-Search"/>
</xsl:attribute>
</input>
</div>
</xsl:if>
有人能帮我吗
干杯,JV您的表格需要如下:
<form action="?">
<!--You macro here-->
</form>
或者只是
<form>
<!--You macro here-->
</form>
假设您已删除母版页中的表单标记,我不熟悉Umbraco XSLTSearch,但为了将查询参数输入URL,您的
通常需要使用。在您的情况下,这是可能的,还是从XSLT可以控制的内容中抽象出来的?我的主模板中的表单集被设置为前端的“post”方法。