帝国CMS灵动标签调用多表多模型调用文章的方法


本文整理自网络,侵删。

灵动标签调用多表多模型调用文章

1、调用多模型的最新文章

[e:loop={'select * from (
select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_movie where newstime union
select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_news where newstime union
select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_photo where newstime union
select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_flash where newstime union
select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_article where newstime) a order by newstime desc limit 10',10,24,1}]
<a href="<?=$bqsr['titleurl']?>" target="_blank"><?=$bqr['title']?></a> <br>
[/e:loop]

帝国CMS多表调用最新信息,该演示代码为默认数据表下全站最新10条图片信息,自己根据需求可以附加条件,实现全站点击,全站头条,全站推荐等等.

阅读剩余部分

相关阅读 >>

帝国CMS7.5编辑器换行替换为p标记,如何将标签br换成p标签

matlab建立自定义函数的方法

帝国CMS里 栏目列表模板获取同级栏目的方法

帝国CMS 功能解密 网站安全防火墙使用说明

win8系统如何进入用户账户界面管理账户

帝国CMS7.5使用tagsid实现伪静态调用方法

帝国CMS 刷新数据表news 比较卡的解决方法

帝国CMS7.0动态列表页面分页显示个数修改方法

帝国CMS在自定义列表中获取当前列表id的方法

帝国CMS内容页模板把当前文章发布时间改成年月号星期几显示方式

更多相关阅读请进入《帝国CMS》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...