幫助

易優(yōu)CMS指定文章列表獲取tag標(biāo)簽

2018-12-29 10:13 標(biāo)簽調(diào)用

易優(yōu)cms在首頁(yè)或者列表頁(yè)的時(shí)候,想要在文章列表內(nèi)給每篇文章調(diào)用輸出TAG關(guān)鍵詞的時(shí)候如何調(diào)用呢?
下面代碼就可實(shí)現(xiàn)。文章調(diào)用標(biāo)簽不變,只需要在輸出TAG的位置添加下面標(biāo)紅的標(biāo)簽即可實(shí)現(xiàn)調(diào)用。


 {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>標(biāo)簽:{eyou:tag aid='field.aid' 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}

 
調(diào)用示例:


標(biāo)簽: TAG
QQ在線咨詢(xún)