Document

 咨询热线

0791-86659123

18179139123 (南昌)

18969909123(杭州)

收 起 

咨询热线

返回顶部

JEECMS V8版标签之[@cms_topic_page]

发布时间: 2017-06-07 19:52:29 作者:本站编辑 来源: 本站原创 浏览次数:2653

专题分页标签


参数详解:


channelId:栏目ID

recommend:是否推荐

作用:对页面显示的专题列表进行分页

具体例子:

<div class="pagebar" style="margin:30px auto;"> 

    [@cms_topic_page count='2' descLen='50' append='...']

  <div class="pagebar" >

      [#list tag_pagination.list as t]

   <dl class="list line zt">

    <dt><a href="${base}/topic/${t.id}.jspx" target="_blank">${t.name}</a></dt>

    <dd class="pic"><a href="${base}/topic/${t.id}.jspx"><img src="${t.titleImg!site.defImg}"/></a></dd>

    <dd class="text">[@text_cut s=t.description len=descLen append=append/]</dd>

   </dl>    

   [/#list]

  </div>

        <div>[@cms_pagination sysPage='1'/]</div>

        [/@cms_topic_page]    

</div>



JEECMS V8版标签之[@cms_topic_list]

专题列表标签

参数详解:


channelId:栏目ID

recommend:是否推荐

作用:显示专题列表


具体例子:

<table width="980" border="0" align="center" cellpadding="1" cellspacing="1">

<tr>

 <td align="right"  background="/${res}/img/topic/lmbj.gif"><img src="/${res}/img/topic/lm_2.gif"/></td>

  <td width="990" align="left" background="/${res}/img/topic/lmbj.gif"><h2>热门专题</h2></td>

  </tr>

  <tr>

            <td colspan="2" bgcolor="#FFFFFF">    

     [@cms_topic_list count='4' descLen='36' append='...']

     [#list tag_list as t] 

   <dl class="list line zt box">

    <dt><a href="${base}/topic/${t.id}.jspx" target="_blank">${t.name}</a></dt>

    <dd class="pic"><a href="${base}/topic/${t.id}.jspx"><img src="${t.titleImg!site.defImg}"/></a></dd>

    <dd class="text">[@text_cut s=t.description len=descLen append=append/]</dd>

   </dl>

     [/#list]

        [/@cms_topic_list]   

   </td>

          </tr>

</table>


8