## 导航标签
> 主栏目标签
~~~
{column value=''} 循环的栏目 {/column}
/*1个参数
* value = '自定义标量'
*/
~~~
> 案例
~~~
{column value=''}
<li>
<a href="{if condition='$column["jumpurl"]'}{$column["jumpurl"]}{else/}{:url('index/index/'.$column['model'],['id'=>$column['id']])}{/if}">{$column.name}</a>
/*如果有子栏目*/
<ul>
{volist name='column["chilrend"]' id='nav'}
<li>
<a href="{if condition='$nav["jumpurl"]'}{$nav["jumpurl"]}{else/}{:url('index/index/'.$nav['model'],['id'=>$nav['id']])}{/if}">{$nav.name}</a>
</li>
{/volist}
</ul>
</li>
{/column}
~~~
# 子栏目调用标签
> 子栏目调用标签
~~~
{nav cid='20' order='"sort desc"' value=''} 循环的栏目 {/nav}
/*
3个参数
cid=查询的栏目ID,若为空,则默认为当前栏目的id
order=排序规则 默认sort desc
value = '自定义变量'
*/
~~~
> 案例
~~~
{nav cid='20' order='"sort desc"' value=''}
<li>
<a href="{if condition='$nav["jumpurl"]'}{$nav["jumpurl"]}{else/}{:url('index/index/'.$nav['model'],['id'=>$nav['id']])}{/if}" title="{$nav.name}">
<img src="{$nav['originalPic']}" alt="">
<h2>{$nav.name}</h2>
<p>{$nav.description}</p>
</a>
</li>
{/nav}
~~~
> 自定义栏目标签
~~~
{nav_custom id=’”1,2,3”’ value=’’} 循环的栏目 {/nav_custom}
/*2个参数
*
* id='"需要调用的栏目id"'
* value = '自定义变量'
*/
~~~
> 案例
~~~
{nav_custom id='"21,24"' value=''} //自定义调用id=21,24,2个栏目导航
<li>
<a href="{if condition='$nav_custom["jumpurl"]'}{$nav_custom["jumpurl"]}{else/}{:url('index/index/'.$nav_custom['model'],['id'=>$nav_custom['id']])}{/if}">
{$nav_custom.name}
</a>
</li>
{/nav_custom}
~~~
> 当前栏目标签
~~~
{location} 循环内容 {/location}
/*2个参数
*
value = '自定义变量' 默认:nav_location
*/
~~~
> 案例
~~~
{location} {$location.name} {/location}
~~~