PHPCMS列表循环序列号自增标签代码

时间:2023-09-17 11:23:26

{pc:content action="position"posid="1"num="3"thumb="1"}

{php $i=0;}

{loop $data $v}

{$i}

{php $i++}

{/loop}

{/pc}

从0开始输出

{pc:content action="position"posid="1"num="3"thumb="1"}

{loop $data $k $v}

{$n}

{/loop}

{/pc}