初始代码:
| |
{dede:href="https://www.ibytx.com/tag/275/" title="查看含有 channel 标签的文章" target="_blank">channel type='top' row='10' currentstyle="<li class='hover'><a href='~typelink~' ~rel~><span>~typename~</span>~autoindex~</a></li>"} |
| |
<li><a href='[field:typeurl/]' [field:rel/]><span>[field:typename/]</span>[field:global name=autoindex/]</a></li> |
|
修改方法:
打开 includetaglibchannel.lib.php 找到
| |
$linkOkstr = str_replace("~typename~",$row['typename'],$linkOkstr); |
|
在其下面加入下面的代码段:
| |
$linkOkstr = str_replace("~autoindex~",$GLOBALS['autoindex'],$linkOkstr); |
|
版权声明:本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
文章名称:《织梦模板中channel标签的currentstyle里加入autoindex自增标签》
文章链接:
https://www.ibytx.com/666.html
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。