-
织梦技巧
TAG标签输出有时为了判断或者其他,我们需要获取它的自增数字,织梦dede:tag默认标签没有自增标签,我们可以自己添加 打开 /include/taglib/tag.lib.php 找到 $ctp-LoadSource($InnerText); 1 在它下面加入 $ GLOBALS[ autoindex ] = 1; 1 继续找到 $revalue .= $ctp-GetResult(); 1 在它下面加入 $ GLOBALS[ autoindex ]++; 1 完成 模板标签写法 {dede:tag ...
173
-
织梦技巧
[field:global name=autoindex runphp=yes]@me=@me+1;[/field:global] {dede:global name=itemindex runphp=yes}@me=@me+1;{/dede:global} autoindex itemindex 的使用心得区别 channelartlist 标签下使用 {dede:global name=itemindex runphp=ye...
77