channelartlist標(biāo)簽下嵌套arclist標(biāo)簽,達(dá)不到預(yù)期效果,舉例:
<div class="container">
<div class="in-news-con swiper-container">
<div class="swiper-wrapper">
{eyou:channelartlist typeid='49'}
<div class="swiper-slide">
<ul class="list-3 clearfix">
{eyou:arclist typeid='' row='6' titlelen='60' orderby='add_time'}
<li class="wow zoomInUp">
<a href="{$field.arcurl}">
<div class="date"><strong>{$field.add_time|MyDate='d',###}</strong>{$field.add_time|MyDate='Y-m',###}</div>
<div class="text">
<h4>{$field.title}</h4>
<p>{$field.seo_description|msubstr=###,0,180/2}...</p>
</div>
</a>
</li>
{/eyou:arclist}
</ul>
</div>
{/eyou:channelartlist}
</div>
</div>
</div>
當(dāng)arclist 標(biāo)簽下的typeid為空時(shí),應(yīng)該是遍歷輸出channelartlist下所有子欄目下分別對應(yīng)的文章信息,但是結(jié)果卻是每一個(gè)子欄目都輸出的是同樣的文章信息。
用同樣的方法,在織夢cms里面,當(dāng)arclist 標(biāo)簽下的typeid為空時(shí),是可以輸出channelartlist下每個(gè)子欄目對應(yīng)的文章信息的,不是清一色的文章信息。
<div class="container">
<div class="in-news-con swiper-container">
<div class="swiper-wrapper">
{dede:channelartlist typeid='49'}
<div class="swiper-slide">
<ul class="list-3 clearfix">
{dede:arclist typeid='' row='6' titlelen='60' orderby='pubdate'}
<li class="wow zoomInUp">
<a href="[field:arcurl/]">
<div class="date"><strong>[field:pubdate function="MyDate('d',@me)"/]</strong>[field:pubdate function="MyDate('Y-m',@me)"/]</div>
<div class="text">
<h4>[field:title/]</h4>
<p>[field:description function="cn_substr(@me,180)"/]...</p>
</div>
</a>
</li>
{/dede:arclist}
</ul>
</div>
{/dede:channelartlist}
</div>
</div>
</div>