怎么给织梦5.x{dede:channel}标签增加行数序号属性
时间:2020-09-04 07:00:07
作者:重庆seo小潘
来源:
步骤如下: 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
步骤如下:
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教程以上就是怎么给织梦5.x{dede:channel}标签增加行数序号属性的详细内容,更多请关注小潘博客其它相关文章!