时间就是生命。时光不会倒流,珍惜此刻,奋斗未来吧。记住你无畏青春的样貌,你未必出类拔萃,但必须与众不一样。
我们知道文章调用支持autoindex 但channel 不支持,那如何支持呢?
在include/taglib/channel.lib.php 第140行之后加一句
$linkOkstr = str_replace("~autoindex~",$GLOBALS['autoindex'],$linkOkstr);
下面是例句:
{dede:channel type='top' currentstyle="<li id='taba~autoindex~' class='top1'><a rel="nofollow noopener noreferrer" href='~typelink~'>~typename~</a></li>" }
<li id='taba[field:global.autoindex/]'><a rel="nofollow noopener noreferrer" href='[field:typelink/]'>[field:typename/]</a></li>
{/dede:channel} 这样dede:channel 标签就完美支持autoindex 这个数字排序标签了
以上就是dede 织梦 如何实现 channel标签的数字递增调用方法。要想走出平凡,就要先走入孤独。更多关于dede 织梦 如何实现 channel标签的数字递增调用方法请关注haodaima.com其它相关文章!