muban大师 发表于 2018-8-9 08:05:49

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

织梦模板代码
                               
                       
                               
                                       
                                               
                                                       
                                                               
                                                                       
                                                                               
                                                                                       
                                                                                               
                                                                                                       
                                                                                                                1
                                                                                                       
                                                                                                                {dede:channel type='top' row='10' currentstyle=""}
                                                                                               
                                                                                       
                                                                               
                                                                       
                                                                       
                                                                               
                                                                                       
                                                                                               
                                                                                                       
                                                                                                                2
                                                                                                       
                                                                                                               
                                                                                               
                                                                                       
                                                                               
                                                                       
                                                                       
                                                                               
                                                                                       
                                                                                               
                                                                                                       
                                                                                                                3
                                                                                                       
                                                                                                                [*,' >
                                                                                               
                                                                                       
                                                                               
                                                                       
                                                                       
                                                                               
                                                                                       
                                                                                               
                                                                                                       
                                                                                                                4
                                                                                                       
                                                                                                               
                                                                                               
                                                                                       
                                                                               
                                                                       
                                                                       
                                                                               
                                                                                       
                                                                                               
                                                                                                       
                                                                                                                5
                                                                                                       
                                                                                                                {/dede:channel}
                                                                                               
                                                                                       
                                                                               
                                                                       
                                                               
                                                       
                                               
                                       
                               
                       
                       
                               
                       
                                修改方法
                       
                                打开 \include\taglib\channel.lib.php 找到
                       
                                $linkOkstr = str_replace("~typename~",$row['typename',,$linkOkstr);
                       
                                在它的下面加入
                       
                                $linkOkstr = str_replace("~autoindex~",$GLOBALS['autoindex',,$linkOkstr);
页: [1]
查看完整版本: 织梦dede:channel的currentstyle里面加入~autoindex~自增