$linkOkstr = str_replace("~typename~",$row['typename'],$linkOkstr);
$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}
[field:autoindex runphp='yes']@me=$GLOBALS['autoindex']+0;[/field:autoindex]
$GLOBALS['autoindex'] = 0;这是织梦默认从0开始,如果要从1开始可以把0改成1,就是
$GLOBALS['autoindex'] = 1;
新闻热点
疑难解答