Document

 咨询热线

0791-86659123

18179139123 (南昌)

18969909123(杭州)

收 起 

咨询热线

返回顶部

JEECMSv8常用功能所用标签

发布时间: 2016-11-03 23:31:35 作者:本站编辑 来源: 本站原创 浏览次数:57176

6、搜索结果页

[#if q??]

    [@cms_lucene_page q=q channelId=channelId startDate=startDate endDate=endDate descLen='170' append='...' count='10' ]

    <div class="searchNav">您搜索的“<span>${input!}</span>”, 共有<span>${tag_pagination.totalCount!}</span>个结果</div>

    <div class="searchList">

      [#list tag_list as s]

      <div class="item">

        <div class="search-title"><a href="${s.url}" title="${s.title}" target="_blank">${s.title?replace('${q!}', "<span>${q!}</span>")}</a></div>

        [#if s.txt??]

        <div class="search-txt">

          [#assign bb=s.txt?replace("<(S*?)[^>]*>.*?|<.*? />","","ri")?replace("&nbsp;","","ri")/]

          [@text_cut s=bb?replace('${q!}', "<span style='color: red;'>${q!}</span>") len=descLen append=append/]

        </div>

        [/#if]

        <div class="search-date"><a href="${s.ctgUrl}" target="_blank">${s.ctgName}</a><em>${s.releaseDate}</em>浏览 <span>${s.views}</span></div>

      </div>

      [/#list]

    </div>

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

     [/@cms_lucene_page]  

ctgUrl内容所属栏目url

ctgName内容所属栏目


34