步骤如下:
1、修改/include/taglib/channel.lib.php文件的lib_channel函数,把如下代码
$attlist = "typeid|0,reid|0,row|100,col|1,type|son,currentstyle|,cacheid|";
修改成
$attlist = "typeid|0,reid|0,row|100,col|1,type|son,currentstyle|,cacheid|,line|1";
|后面的是默认值
2、修改/include/taglib/channel.lib.php文件的lib_channel函数,在
extract($ctag->CAttribute->Items, EXTR_SKIP);
下面添加如下代码:
$default_line = $ctag->CAttribute->Items["line"];//默认属性里设置的行数
3、修改/include/taglib/channel.lib.php文件的lib_channel函数,把如下代码
$row['sonids'] = $row['rel'] = '';
修改成如下代码:
$row['sonids'] = $row['rel'] = ''; $row['line'] = $default_line+$i;
推荐教程:dedecms教程
声明:本文为原创文章,版权归微浪网所有,欢迎分享本文,转载请保留出处!