//获取一级导航
{pc:content action="category" catid="0" num="25" siteid="$siteid" order="listorder ASC"}
<ul class="total-tab-ul clearfix">
<li class="total-tab-list {if !$catid}active-tab{/if}"><a href="{siteurl($siteid)}"><span><i class="been"></i>首页</span></a> </li>
{loop $data $r}
<li class="total-tab-list {if $top_parentid == $r[catid]||$catid==$r[catid]||$parentid==$r[catid]}active-tab{/if}"><a href="{$r[url]}"><span><i class="been"></i>{$r[catname]}</span></a></li> //高亮显示
{/loop}
</ul>
{/pc}
{$CATEGORYS[$catid]['url']} 指定栏目URL代码
{$CATEGORYS[$catid]['catname']} 指定栏目名称代码
{$CATEGORYS[41]['url']} 指定栏目ID为41的URL
{$CATEGORYS[41][catname]}指定栏目ID为41的栏目名
//调用某一栏目id标题
{pc:content action="category" catid="27" num="15" siteid="$siteid" order=""}
{loop $data $index $r}
<li class="area-item {if $n%4==0}mr0{/if}">
<a href="{$r[url]}">{$r[catname]}</a>
</li>
{/loop}
{/pc}
//截取文章内容一部分
{str_cut(strip_tags($r[content]),800)}
//碎片使用
<p> <div id="jianjie" class="jian-con">{pc:block pos="jianjie"}{/pc}</div></p>