Lecms 全局调用指定栏目的文章信息:
{block:listeach cid="6" limit="10" dateformat="m-d" titlenum="38"}
{loop:$data $v}
<div class="col-md-4 col-xs-12">
<section>
<div class="thleftcon">
<div class="thleftbt thwenzhang"><span>{$v[cate_name]}</span><div class="listMore"><a href="{$v[cate_url]}" title="{$v[cate_name]}">More +</a></div></div>
<ul class="th-5">
{php}$rank = 1;{/php}
{loop:$v[list] $lv}
<li><span class="date">{$lv[date]}</span><i>{$rank}</i><a href="{$lv[url]}" title="{$lv[title]}" target="_blank">{$lv[subject]}</a></li>
{php}$rank++;{/php}
{/loop}
</ul>
</div>
</section>
</div>
{/loop}
{/block}
2.
{block:list cid="0" mid="2" limit="3" dateformat="Y-m-d" intronum="102"}
<section>
<div class="thhotnews">
<div class="thhotnews_title">
<div class="iconhot"><i class="iconfont icon-hot"></i>最新文章</div>
</div>
<div class="thhotnews_con">
{loop:$data[list] $v}
<dl class="post_id_{$v[id]}">
<dt><a href="{$v[url]}" title="{$v[title]}">{$v[subject]}</a></dt>
<dd>{$v[intro]}</dd>
</dl>
{/loop}
</div>
</div>
</section>
{/block}
希望以上内容对你有所帮助!如果还有其他问题,请随时提问。 各类知识收集 拥有多年CMS企业建站经验,对 lecms, classcms, fastadmin, pbootcms, phpcms, eyoucms, yzmcms, xunruicms, jizhicms, wordpress, hkcms, yzncms, 等各类cms的相互转化,程序开发,网站制作,bug修复,程序杀毒,插件定制都可以提供最佳解决方案。