织梦系统的搜索页调用arclist、channelartlist标签的方法有很多,以下是本人常用的一种调用方式,分享给大家!
打开include/arc.searchview.class.php
查找
1 2 | require_once (DEDEINC. "/taglib/hotwords.lib.php" ); require_once (DEDEINC. "/taglib/channel.lib.php" ); |
在下面插入
1 2 | require_once (DEDEINC. "/taglib/arclist.lib.php" ); require_once (DEDEINC. "/taglib/channelartlist.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 | 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标签调用数据了。