首先新闻分类调用
<ul class="news-cate"> {pboot:nav num=3 parent=7} <li {pboot@if('[nav:i]'==1)}class="on"{/pboot@if}>[nav:name]</li> {/pboot:nav} </ul>
接着对应新闻分类的内容列表调用
{pboot:nav num=3 parent=7} <div class="news-item"> <div class="item-list news-list"> {pboot:list scode=[nav:scode] num=3 order='date desc' isrecommend=1} <div class="item clearfix"> <div class="pic pic-scale oh"><a href="[list:link]"><img src="[list:ico]" alt="[list:title]"></a></div> <div class="cont"> <h4 class="elp"><a href="[list:link]">[list:title]</a></h4> <p>[list:description lencn=85]</p> <div class="date-mini">[list:date style=m-d]</div> <a href="[list:link]" class="swp-more"><i class="iconfont icon-changyongicon-"></i></a> </div> </div>{/pboot:list} </div> </div> {/pboot:nav}