
channelartlist标签下可以使用{dede:global name='itemindex'/}
dede:channel标签下直接使用[field:global name=autoindex/]
dede:channel标签当前样式currentstyle下时,需要修改文件,channel.lib.php文件,就可以使用~autoindex~ 来调用了
$linkOkstr = $currentstyle;
$row['typelink'] = GetoneTypeUrlA($row);
$linkOkstr = str_replace("~rel~",$row['rel'],$linkOkstr);
$linkOkstr = str_replace("~id~",$row['id'],$linkOkstr);
$linkOkstr = str_replace("~typelink~",$row['typelink'],$linkOkstr);
$linkOkstr = str_replace("~typename~",$row['typename'],$linkOkstr);
后面加上
$linkOkstr = str_replace("~autoindex~",$GLOBALS['autoindex']+1,$linkOkstr);
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)