pbotcms模板导航调用方法

pbotcms模板导航调用方法 pbootcms模板导航调用方法:

1、导航菜单列表

{pboot:nav}
<a href="[nav:link]">[nav:name]</a>
{/pboot:nav}

2、二级嵌套

{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}

3、三级嵌套

{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}