dedecms织梦dede:channel标签的数字递增调用方法

我们知道在 织梦模板 文章调用支持autoindex 但channel 不支持,那如何支持呢? 在include/taglib/channel.lib.php 第140行之后加一句 $linkOkstr = str_replace(~autoindex~,$GLOBALS[autoindex],$linkOkstr); 下面是例 […]



我们知道在织梦模板文章调用支持autoindex 但channel 不支持,那如何支持呢?
在include/taglib/channel.lib.php 第140行之后加一句
$linkOkstr = str_replace("~autoindex~",$GLOBALS['autoindex'],$linkOkstr);
下面是例句:
{dede:channel type='top' currentstyle="
{/dede:channel}

这样dede:channel 标签就完美支持autoindex  这个数字排序标签了


加载中~