我们知道在 织梦模板 文章调用支持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="<li id='taba~autoindex~' class='top1'><a href='~typelink~'>~typename~</a></li>" }
<li id='taba[field:global.autoindex/]'><a href='[field:typelink/]'>[field:typename/]</a></li>
{/dede:channel} 这样dede:channel 标签就完美支持autoindex 这个数字排序标签了
说点什么吧
织梦cms建站教程从入门到精通,自由织梦网www.freedede.cn长期免费更新教程,图文结合dedecms建站教程经验,内容包含使用织
梦CMS、做模板、写采集规则、做插件模块,是学习织梦产品的最佳去处。 |