analin125 - 2013/1/30 13:29:57
最近用V3在英文页面产品那里做了个搜索栏,但是只能搜索中文页面上的产品title,不能包含英文页面的产品title,请问应该怎么设置?
源码如下:
<script type="text/javascript">
function c_keyword()
{
if($("title").value=="")
{
alert("请输入关键词!");
$("title").focus();
return false;
}
}
</script>
<form method="get" action="/e/search/" target="zdy_search" name="S_article">
<input id="title" maxlength="50" size="15" name="title" type="text" /> <input type="hidden" name="modelid" value="125" /><input type="hidden" name="siteid" value="1" /><input class="button" type="submit" onclick="return c_keyword()" value=" search " />
</form>
analin125 - 2013/1/30 13:52:52
顶,xiyou,我需要你啊!!!!!:(
xiyou - 2013/1/30 16:07:42
<input type="hidden" name="siteid" value="1" />
value改为0 就可以搜索所有站点数据。
analin125 - 2013/1/31 12:39:44
xiyou大哥,谢谢你哦。
如果只搜索英文页面的话呢?要怎么设置呢?
xiyou - 2013/1/31 15:45:26
value改为英文站点的id
analin125 - 2013/1/31 16:56:26
明白。
xiyou大哥,还有另外一个问题,就是我现在的网站的首页是中文的,我们需要改成英文的,因为我们做外贸的,我按照帮助中心的指导想吧“cn”改成“en,但是发现web.config 中是"c#". 我吧这个改成”en“也不行。请问要怎么修改?
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appSettings>
<add key="Url" value="localhost" />
<add key="License" value="" />
<add key="DbType" value="0" />
<add key="DBPath" value="/e/database/v3.mdb" />
<add key="SqlConnection" value="Provider=SQLOLEDB;Data Source=127.0.0.1;Initial Catalog=sq_data;User ID=sa;Password=123456" />
<add key="ManageDirectory" value="/e/master/" />
<add key="AutoTask" value="1" />
</appSettings>
<system.web>
<httpModules>
</httpModules>
<pages validateRequest="false" enableEventValidation="false" enableViewStateMac="false" viewStateEncryptionMode="Never" />
<compilation defaultLanguage="c#" debug="false" />
<authentication mode="Forms" />
<customErrors mode="Off">
<error statusCode="404" redirect="/error404.html" />
</customErrors>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
<httpRuntime maxRequestLength="1024000" executionTimeout="3600" />
<trust level="Full" originUrl="" />
</system.web>
</configuration>
analin125 - 2013/1/31 16:57:23
是不是也要把value改为英文站点的id ?