大家都知道帝国CMS有一个自定义JS的功能,常应用于如搜索页面或者其他时时动态显示,虽然有这项功能但由于很多盆友不知道
SQL语句,根本无法使用,为此在这里列出常用的几种,希望对大家有所帮助!
1,根据最新文章 select * from [!db.pre!]ecms_news where checked=1 order by newstime desc limit 102,根据推荐文章 select * from [!db.pre!]ecms_news where checked=1 and isgood=1 order by newstime desc limit 103,根据热门文章 select * from [!db.pre!]ecms_news where checked=1 order by onclick desc limit 104,根据头条新闻 select * from [!db.pre!]ecms_news where checked=1 and firsttitle=1 order by newstime desc limit 105,根据评论排行 select * from [!db.pre!]ecms_news where checked=1 order by plnum desc limit 106,根据digg排行 select * from [!db.pre!]ecms_news where checked=1 order by diggtop desc limit 107,根据投票排行 select * from [!db.pre!]ecms_news where checked=1 order by votenum desc limit 108,根据下载排行 select * from [!db.pre!]ecms_news where checked=1 order by totaldown desc limit 109,根据评分排行 select * from [!db.pre!]ecms_news where checked=1 order by infopfen desc limit 10
推荐学习《帝国cms教程》。
以上就是分享帝国CMS自定义JS语句详细整理的详细内容,更多请关注李烨博客其它相关文章!