Current column menu highlighted chestnut:
<ul>
<li class="{pboot:if(0=='{sort:scode}')}active{/pboot:if}"><a href="/">网站首页</a></li>
{pboot:nav num=10 parent=0}
<li class="dropdown {pboot:if('[nav:scode]'=='{sort:tcode}')}active{/pboot:if}">
<a class="nav-link" href="[nav:link]">[nav:name]</a>
{pboot:if([nav:soncount]>0)}
{pboot:2nav num=10 parent=[nav:scode]}
<div class="v_list">
<p><a href="[2nav:link]">[2nav:name]</a></p>
</div>
{/pboot:2nav}
{/pboot:if}
</li>
{/pboot:nav}
</ul>Menu nesting
Level 2 nesting
{pboot:nav}
<a href= "[nav:link]">[nav:name]</a>
{pboot:2nav parent=[nav:scode]}
<a href= "[2nav:link]">[2nav:name]</a>
{/pboot:2nav}
{/pboot:nav}Three levels of nesting
{pboot:nav}
<a href= "[nav:link]">[nav:name]</a>
{pboot:2nav parent=[nav:scode]}
<a href= "[2nav:link]">[2nav:name]</a>
{pboot:3nav parent=[2nav:scode]}
<a href= "[3nav:link]">[3nav:name]</a>
{/pboot:3nav}
{/pboot:2nav}
{/pboot:nav}If there are more levels, and so on, use numbers to apply by level. In theory, there is no limit to the level of calling.
Detailed interpretation
{pboot:nav num=10 parent={sort:scode}}
[nav:i] 栏目序号
[nav:pcode] 父编码
[nav:scode] 栏目编码
[nav:name] 栏目名称
[nav:subname] 栏目副名称
[nav:link] 栏目链接
[nav:type] 栏目类型,1单页、2列表
[nav:outlink] 外链接
[nav:listtpl] 列表页模板
[nav:contenttpl] 内容页模板
[nav:ico] 栏目缩略图
[nav:pic] 栏目大图
[nav:keywords] 栏目关键字
[nav:description] 栏目描述
[nav:soncount] 子栏目数量
{/pboot:nav}Control parameters:
num=* quantity, optional, used to control the quantity of output
parent=* parent menu code, optional, used to control the parent menu code of the output list, the default is 0, that is, output starts from the first-level menu
parent={sort:pcode} can be used to output the same level menu of the current column
parent={sort:scode} can be used to output the submenu of the current column
parent={sort:tcode} can be used to output the submenu of the current column's top menu