Pzycms调用分类示例

来源:meishanweb     Time:2017-02-11     点击:699次

示例一:循环调用子类并获取子类下的列表数据

<volist id='cate' name='cate'>

<php>$cateid=implode(',',getsonid($category[id]));</php>//获取子类
<pzycms:pzycms name="Ne" id="news" limit="5" father='0' catid="$cateid" where="status=0 and user_id=$companyConfig[user_id]" order="display_order DESC">
这里循环内容,cateid只需要$符号
</pzycms:pzycms>

 </volist>



示例二:sql不等于空

<pzycms:pzycms name="Cate" id="row" limit="8" order="display_order DESC" where="status=0 and user_id=$companyConfig[user_id] and attach_image is not null" catname='parent_id' catid='155' father='0' relation='0'>
<a class="media-heading">{$row.title}</a>
</pzycms:pzycms>

下一篇:####   上一篇:####