因为网站频道数次必须启用同一频道下的频道例如顶尖频道6 下属频道5.4.3.2.1 必须分2次各自调成543和21 觉得channel就较为费劲了所有写SQL又过多,将会就是我还不知道道有别的方式吧。row启用出不来这类实际效果因此就把row改成了Limit使用方法了较为便捷 改动文档include\taglib/下边的channel.lib.php 在涵数lib_channel里边再加
//limit标准
$limit = trim(eregi_replace( limit , ,$limit));
if($limit!= ) $limitsql = limit $limit
else $limitsql = limit 0,7
$orwhere =
if(isset($orwheres[0])) {
$orwhere = join( And ,$orwheres);
$orwhere = ereg_replace( ^ And , ,$orwhere);
$orwhere = ereg_replace( And[ ]{1,}And , And ,$orwhere);
}
if($orwhere!= ) $orwhere = where $orwhere //二次开发设计
--------------------------------------------------------------------------------
把上边的编码,加上到涵数lib_channel(实际部位为:)
function lib_channel( $ctag, $refObj)
{
global $dsql;
$attlist = typeid|0,reid|0,row|100,col|1,type|son,currentstyle|,cacheid|
FillAttsDefault($ctag- CAttribute- Items,$attlist);
extract($ctag- CAttribute- Items, EXTR_SKIP);
$innertext = $ctag- GetInnerText();
$line = empty($row) ? 100 : $row;
----------------------------------------------------------
这一段编码后边
全部查寻标准的limit 0,$row改成$limitsql OK 储存
dedecms模版,dedecms公司模版,dedecms新闻资讯模版,高档HTML5响应式模版,dedecms手机上模版,织梦cms模版实例教程,网站模版,网页页面模版,完全免费网页页面模版
Copyright © 广州凡科互联网科技有限公司 版权所有 粤ICP备10235580号
全国服务电话:4000-399-000 传真:021-45545458
公司地址:广州市海珠区工业大道北67号凤凰创意园