
dedecms织梦dede:channel
标签的数字递增
调用方法
我们知道文章调用
支持autoindex 但channel 不支持,那如何支持呢?
在include/taglib/channel.lib.php 第140行之后加一句
$linkOkstr = str_replace("~autoindex~",$GLOBALS['autoindex'],$linkOkstr);
下面是例句:
{dede:channel type='top' currentstyle="
~typename~" }
[field:typename/]
{/dede:channel}
这样dede:channel 标签就完美支持autoindex 这个数字排序标签了
评论列表(0条)