欢迎来访概念模板网,优质网站模板提供商! 昆山亿思互联信息科技有限公司欢迎您!
高级教程

循环调用某一类别下子类别内容的方法

日期:2025-03-12 人气:8
{eycms:rp top="0" table="ey_category" where="followid=0 and ismenu=1" order="ordnum,cateid" var="ids:cateid"}
<div class="subject"><span><a href="{eycms.getcateurl($rp[cateid])}">MORE+</a></span>{$rp[catename]}</div>
<ul>
{eycms:rs top="10" table="ey_content" where="islock=1 and classid in([eycms.get_sonid(ids)])" order="ontop desc,ordnum desc,id desc"}
{rs:eof}暂无资料{/rs:eof}
<li><span>[{eycms.formatDate($rs[createdate],7)}]</span><a href="{$rs[link]}" title="{$rs[title]}">{eycms.cutstr($rs[title],56,1)}</a></li>
{/eycms:rs}
</ul>
{/eycms:rp}

CSS样式部分请自己书写,把栏目ID换成你的大栏目ID,注意top参数限制了数量.

    0
    0
    评论
    美国网友
    美国网友
    物美价廉多买多送
    省时省力持续更新
    优质模板宁缺毋滥
    极速响应售后服务
    15250286283
    工作时间:09:00 - 17:00