互联网技术 · 2024年2月12日

实现子栏目数据的循环-帝国CMS灵动标签方法

你知道帝国cms灵动标签如何实现循环子栏目数据吗?其实代码很简单,下面小编就来介绍一下。

[e:loop={"select classid, classname, classpath from `[!db.pre!]enewsclass` where bclassid=$bclassid order by `classid` desc ",7,24,0}]
fetch1("select title,titlepic,smalltext,titleurl,keyboard,groupid,classid,newspath,filename,id from {$dbtbpre}ecms_news where classid = ".$bqr[classid]." and titlepic!= order by newstime desc limit 1"); $commbookurl=sys_ReturnBqTitleLink($commbook); ?>
 
  更多
 
     
  • ...

     
  •     query("select title,titlepic,smalltext,titleurl,keyboard,newstime,groupid,classid,newspath,filename,id from {$dbtbpre}ecms_news where classid =".$bqr[classid]." order by newstime desc limit 5");     while($r=$empire->fetch($newbook)) {     ?>    
  • ">
  •       
 
  [/e:loop]

文章转自:黎青松SEO博客

来源地址:http://www.alitaohuo.com/CMSjiaocheng/diguojiaocheng/1855.html

$.getJSON(“/section/814.json”,function(data){var h = + data[0][title] + : + data[0][description] + ;$(#section-814).append(h);});

申请创业报道,分享创业好点子。点击此处,共同探讨创业新机遇!

$.getJSON(“/section/637.json”,function(data){var channel_id =window.CHANNEL_ID ||0;var channel,default_channel;$.each(data,function(i,r){if (r.channel_id ==0) {default_channel =r;} if (r.channel_id ==channel_id) {channel =r;return false;} }) channel =channel ?channel :default_channel;if (channel &&channel.thumb) {var h =;$(#section-637).append(h);} });

OpenMagic API

Need more than content? Move into the product flow.

If you are here for model access, pricing, developer docs, or the future API console, the dedicated product path now lives on api.openmagic.ai.

登录免费注册