Classcms 指定栏目下的文章调用代码
Classcms 指定栏目下的文章调用代码?
答:
{loop a('cid',66618110,'pagesize',1) as $article}
<li class="swiper-slide"><a href="{$article.link}" target="_blank">
<img class="lazyload" data-src="{$article.pic}" alt="{$article.title} ">
<div class="news-swiper-content">
<span>{$.66618110.channelname}</span>
<h3>{$article.title} </h3>
</div>
</a></li>
{/loop}
a函数的第二个参数:66618110为栏目id,