{dede:global.cfg_cmsurl /} 首页链接
一级导航:
{dede:channel type=“top”}[field:typelink]:导航链接[field:typename]:导航名{/dede:channel} 二级导航:{dede:channelartlist type=“top”}//循环顶级栏目{dede:channel type=“son”}//循环二级栏目{/dede:channel}{/dede:channelartlist}例子:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
apideom演示:<hr>
{dede:global.cfg_templets_skin/}
<hr>
<!--{dede:channel type='top'}
<a href="[field:typeurl/]" rel="external nofollow" rel="external nofollow" rel="external nofollow" >[field:typename/]</a>
{/dede:channel}-->
{dede:channel type="top"}
我是顶级导航:<a href="[field:typeurl/]" rel="external nofollow" rel="external nofollow" rel="external nofollow" >[field:typename/]</a>
{/dede:channel}
<hr>
{dede:channelartlist type="top"}
{dede:channel type="son"}
我是子导航:<a href="[field:typeurl/]" rel="external nofollow" rel="external nofollow" rel="external nofollow" >[field:typename/]</a>
{/dede:channel}{/dede:channelartlist}
</body>
</html>
模板文件不存在:可以将default中的默认文件复制到自己模板目录下,当然也可以自己创建 type和typeid属性只能设置一个