教程

易優CMS指定文章列表獲取tag標簽

2019-10-22 meiz21
易優CMS在首頁或者列表頁的時候,想要在文章列表內給每篇文章調用輸出TAG關鍵詞的時候如何調用呢?
下面代碼就可實現。文章調用標簽不變,只需要在輸出TAG的位置添加下面標紅的標簽即可實現調用。


 {eyou:arclist row='5' titlelen='80' }
  <section class="section">
    <h2><a href="{$field.arcurl}" title="{$field.title}" target="_blank">{$field.title}</a></h2>
    <div class="left-thumbnail"> <a href="{$field.arcurl}" title="{$field.title}" target="_blank"><img src="{$field.litpic}" alt="{$field.title}"/></a> </div>
    <div class="intro">{$field.seo_description|html_msubstr=###,0,320,true}</div>
    <div class="intro"><span>標簽:{eyou:tag sort='now' getall='0' row='10' id='field2'}<a href='{$field2.link}' class="tag">{$field2.tag}</a>{/eyou:tag}</span></div>
    <div class="intro-meta"><span>作者:{$field.author}</span> <span>日期:{$field.add_time|MyDate='Y-m-d',###}</span> <span>人氣:{$field.click}</span> <span class="readmore"><a href="{$field.arcurl}" title="{$field.title}" target="_blank">閱讀全文</a></span> </div>
    <div class="clear"></div>
  </section>
  {/eyou:arclist}

 
調用示例:


QQ在線咨詢
时时彩连续30期开小