带分页列表标签:

获取给定模型和栏目的内容分类列表

{hcTaglib:contentPage mainField="id,title,thumbnail" subField="*"  name="case_list" limit="9"}
<dl>
    <dt>
        <a href="{:hcUrl('detail/index',['id'=>$vo['id'],'cid'=>$vo['category_id']])}">
            <img src="{$vo['thumbnail']['url']}" alt="">
            <img src="_{$vo['main_content']['case_icon']['url']}" class="logo-icon" alt="">
        </a>
    </dt>
    <dd>
        <em>{$vo['main_content']['case_year']}</em>
        <h4>
            <a href="javascript:;">{$vo['title']}</a>
        </h4>
        <div class="category">
            {volist name="$vo['tag']" id="vvv"}
            <a href="javascript:;">{$vvv['title']}</a>
            {/volist}
        </div>
    </dd>
</dl>
{/hcTaglib:contentPage}

{$case_list|raw}
<ul class="pager">
    <li><a href="?page=1">&laquo;</a></li>
    <li class="disabled"><span>&raquo;</span></li>
</ul>

内容列表标签接收cid,moduleId,name,mainField,subField,limit,onlyData
栏目cid:id是必填项,字符串(英文逗号分开)
模型ID:module_id必填项
数据名:name,默认值为hc_content
主表字段:mainField,默认查询所有字段
副表字段:subField,默认不查询副表字段
数量:limit,查询数据数量,默认查询所有
循环变量名:item,默认值为vo

results matching ""

    No results matching ""