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

内容页按大栏目ID显示相关内容的标签教程

日期:2025-03-12 人气:17
<ul>
{eycms:rs top="10" table="ey_content" where="islock=1 and classid in([eycms.get_sonid(rootid)]) and id<>[id]" 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]}">{$rs[title]}</a></li>
{/eycms:rs}
</ul>

代码说明:
先获取内容所在大栏目ID的所有子类,然后给where参数使用,并排除当前内容ID。

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