muban大师 发表于 2020-7-28 10:45:54

dede 织梦 实现 channel标签的数字递增调用方法

我们知道文章调用支持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这个数字排序标签了
页: [1]
查看完整版本: dede 织梦 实现 channel标签的数字递增调用方法