这篇文章主要围绕织梦DEDECMS搜索提交用a便签替换button标签办法和织梦调用标签展开,旨在为您提供一份详细的参考资料。我们将全面介绍织梦DEDECMS搜索提交用a便签替换button标签办法的
这篇文章主要围绕织梦DEDECMS搜索提交用a便签替换button标签办法和织梦调用标签展开,旨在为您提供一份详细的参考资料。我们将全面介绍织梦DEDECMS搜索提交用a便签替换button标签办法的优缺点,解答织梦调用标签的相关问题,同时也会为您带来DEDECMS织梦搜索页调用arclist标签的办法、dedecms织梦的搜索页支持dede标签的办法、修改织梦dedecms搜索页每页只显示10条、如何解决织梦DedeCMS搜索页调用文章列表的一个办法的实用方法。
本文目录一览:- 织梦DEDECMS搜索提交用a便签替换button标签办法(织梦调用标签)
- DEDECMS织梦搜索页调用arclist标签的办法
- dedecms织梦的搜索页支持dede标签的办法
- 修改织梦dedecms搜索页每页只显示10条
- 如何解决织梦DedeCMS搜索页调用文章列表的一个办法
织梦DEDECMS搜索提交用a便签替换button标签办法(织梦调用标签)
我们用织梦建站时,织梦默认搜索提交标签是button,有时候我们不要botton样式,就用a便签来替换。
原理是:在a便签里加个onclick属性,在前面form里加入id='search_form',直接上一个案例代码,就知道如何来套用了
<form name="formsearch" action="/plus/search.php" id='search_form'>
<div>
<input type="hidden" name="kwtype" value="0">
<input name="q" type="text" id="search-keyword" value="在这里搜索..." onfocus="if(this.value=='在这里搜索...'){this.value='';}" onblur="if(this.value==''){this.value='在这里搜索...';}" x-webkit-speech="">
</div>
<div>
<a onclick="document.getElementById('search_form').submit();"><img src=http://www.dede58.com/a/dedejq/"/style/picture/search_btn.jpg" alt="Products Search"></a>
</div>
</form>
DEDECMS织梦搜索页调用arclist标签的办法
原版的织梦搜索页,直接调用arclist是无效的,下面这样做才可以
打开include/arc.searchview.class.php
查找:require_once(DEDEINC."/taglib/hotwords.lib.php");
require_once(DEDEINC."/taglib/channel.lib.php");
在下面加入:
require_once(DEDEINC."/taglib/arclist.lib.php");
require_once(DEDEINC."/taglib/channelartlist.lib.php");
找到:
else if($tagname=="hotwords") { $this->dtp->Assign($tagid,lib_hotwords($ctag,$this)); }
在下面插入:
else if($tagname=="arclist") { $this->dtp->Assign($tagid,lib_arclist($ctag,$this)); } else if($tagname=="channelartlist") { $this->dtp->Assign($tagid,lib_channelartlist($ctag,$this)); }
这样就可在dedecms织梦搜索页面使用arclist和channelartlist标签调用数据了。 本文章网址:http://www.ppssdd.com/code/8503.html。转载请保留出处,谢谢合作!
dedecms织梦的搜索页支持dede标签的办法
我们制作织梦源码的时候,在搜索页源码中search.htm中是无法调用arclist标签,这就使得搜索结果页呈现出来的效果是特别单调的,arclist并不适用于dede搜索页,织梦搜索页很多标签是失效的,织梦的搜索页面支持dede标签的办法如下:
打开文件:include/arc.searchview.class.php
找到:
1
require_once(DEDEINC."/taglib/hotwords.lib.php");
在下面添加:
1
2
3
4
5
6
require_once(DEDEINC."/taglib/channel.lib.php");
require_once(DEDEINC."/taglib/arclist.lib.php");
require_once(DEDEINC."/taglib/channelartlist.lib.php");
require_once(DEDEINC."/taglib/myad.lib.php");
require_once(DEDEINC."/taglib/php.lib.php");
require_once(DEDEINC."/taglib/sql.lib.php");
然后找到:
1
2
3
4
else if($tagname=="hotwords")
{
$this->dtp->Assign($tagid,lib_hotwords($ctag,$this));
}
在下面添加:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
else if($tagname=="arclist")
{
$this->dtp->Assign($tagid,lib_arclist($ctag,$this));
}
else if($tagname=="channelartlist")
{
$this->dtp->Assign($tagid,lib_channelartlist($ctag,$this));
}
else if($tagname=="myad")
{
$this->dtp->Assign($tagid,lib_myad($ctag,$this));
}
else if($tagname=="php")
{
$this->dtp->Assign($tagid,lib_php($ctag,$this));
}
else if($tagname=="sql")
{
$this->dtp->Assign($tagid,lib_sql($ctag,$this));
}
这样,搜索页面就支持多种标签了。
包括{dede:arclist} {/dede:arclist}、{dede: channelartlist } {/dede: channelartlist}、{dede: myad } {/dede: myad }、{dede: php } {/dede: php }、{dede: sql } {/dede: sql }
如果需要支持其他的标签,以此类推。
本文章网址:http://www.ppssdd.com/code/11985.html。转载请保留出处,谢谢合作!修改织梦dedecms搜索页每页只显示10条
如何解决织梦DedeCMS搜索页调用文章列表的一个办法
关于织梦DEDECMS搜索提交用a便签替换button标签办法和织梦调用标签的介绍已经告一段落,感谢您的耐心阅读,如果想了解更多关于DEDECMS织梦搜索页调用arclist标签的办法、dedecms织梦的搜索页支持dede标签的办法、修改织梦dedecms搜索页每页只显示10条、如何解决织梦DedeCMS搜索页调用文章列表的一个办法的相关信息,请在本站寻找。
本文标签: