易優(yōu)cms在首頁(yè)或者列表頁(yè)的時(shí)候,想要在文章列表內(nèi)給每篇文章調(diào)用輸出圖集模型圖片的時(shí)候如何調(diào)用呢?
下面代碼就可實(shí)現(xiàn)。文章調(diào)用標(biāo)簽不變,只需要在輸出圖集模型圖片的位置添加下面標(biāo)紅的標(biāo)簽即可實(shí)現(xiàn)調(diào)用。
{eyou:arclist typeid='1' titlelen='40' row='6' id='field'} <section class="section">
<div class="img">
{eyou:arcview id='field2'}
{eyou:volist name="$field2.image_list" id='field3'}
<img src="{$field3.image_url}" alt="">
{/eyou:volist}
{/eyou:arcview}</div> <h2><a href="{$field.arcurl}" title="{$field.title}" target="_blank">{$field.title}</a></h2> <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)用示例(css樣式請(qǐng)自行填充):