首页  »  站长资讯  »  网站优化

织梦dede:channel的currentstyle里面加入~autoindex~自增

2023/03/11 12:23     创新屋收录网     已浏览337次



织梦模板代码





















1

{dede:channel type='top' row='10' currentstyle="
  • ~typename~~autoindex~
  • "
    }











    2

     












    4

     











    5

    {/dede:channel}







    修改方法

    打开 includetaglibchannel.lib.php 找到

    $linkOkstr = str_replace("~typename~",$row['typename'],$linkOkstr);

    在它的下面加入

    $linkOkstr = str_replace("~autoindex~",$GLOBALS['autoindex'],$linkOkstr);