Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Umbraco XSLTsearch如何将查询字符串添加到搜索结果URL_Url_Search_Xslt_Query String_Umbraco - Fatal编程技术网

Umbraco XSLTsearch如何将查询字符串添加到搜索结果URL

Umbraco 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

如何将查询字符串添加到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="input">
      <xsl:attribute name="value">
        <xsl:value-of select="$unescapedSearch"/>
      </xsl:attribute>
    </input>
    <xsl:text>&nbsp;</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”方法。