易优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 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}
调用示例: