cms模版语法

cms模版标签


1
2
3
4
自闭和标签
{dede:include filename="文件路径"/};
手动闭合标签:
{dede:channel type="top"}<a href="#">[field.title]{/dede:channel}

模版标签

[include] 标签

1
2
3
4
* include
语法:{dede:include filename="文件名"/}
说明:加载某个html片段或html模版文件
示例: {dede:include filename="head.htm"/}

[channel] 标签

1
2
3
4
* channel
语法:{dede:channel typeid="栏目ID" reid="父栏目ID" row="调用数量" col="分多少列显示" type="显示的类型" currentStyle="当前栏目样式"}html代码{/dede:channel}
说明:循环标签,返回给定属性的栏目列表;
示例:{dede:channel type="top"}<div>test</div>{dede:channel}
0%