本文目录一览:
- 1、帝国cms如何调用织梦cms文章内容?
- 2、帝国cms首页多表调用,要调用栏目缩略图+标题。
- 3、帝国CMS怎样制作下拉菜单?谢谢
- 4、求帝国CMS系统 标签模板调用栏目页自定义字段的方法?
- 5、帝国cms自定义的字段,怎么在列表页中调用?
帝国cms如何调用织梦cms文章内容?
直接写原生的php,在帝国cms的模版中读数据库表,然后循环出来
还有另外一个方法,就是用织梦的cms写一个json输出,然后在帝国cms中写一个ajax接受数据就可以了
帝国cms首页多表调用,要调用栏目缩略图+标题。
本来不想回答
去年做过项目4表联合
拿去自己改吧
不会改就没办法
不解释
[e:loop={'select *
from
(
(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news where istop=1 order by newstime desc limit 13 )
Union All
(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news1 where istop=1 order by newstime desc limit 13)
Union All
(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news2 where istop=1 order by newstime desc limit 13)
Union All
(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news3 where istop=1 order by newstime desc limit 13)
) as A order by newstime desc limit 20',0,24,0}]
?php
$fb=$empire-fetch1("select *
from
(
(select id,classid,smalltext from phome_ecms_news_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,smalltext from phome_ecms_news1_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,smalltext from phome_ecms_news2_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,smalltext from phome_ecms_news3_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
) as A");
?
li class="clearfix"
a target='_blank' href="?=$bqr[titleurl]?" title="?=$bqr[title]?" class="index-img"img src="?=$bqr[titlepic]?$bqr[titlepic]:"404.jpg'?" alt="?=$bqr[title]?"/a
div class="index-text"
h1a target='_blank' href="?=$bqr[titleurl]?"?=$bqr[title]?/a
/h1
div class="index-con"/div
div class="index-intro"a target="_blank" href="?=$bqr[titleurl]??from=index_new_intro"?=$fb[smalltext]?/a/div
div class="index-like clearfix"
span class="time"
?php
$fr=$empire-fetch1("select *
from
(
(select id,classid,infotags from phome_ecms_news_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,infotags from phome_ecms_news1_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,infotags from phome_ecms_news2_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,infotags from phome_ecms_news3_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
) as A");
$keyr=explode(',',$fr[infotags]);
for($i=0;$i2;$i++)
{
echo'spana href="/liaotian/tags-'.$keyr[$i].'-0.html" target=_blank'.$keyr[$i].'/a/span ';
}
?
/span
span class="time"?=format_datetime($bqr[newstime],"m-d")?/span
div class="post-ope"
a href="/e/public/digg/?classid=?=$bqr[classid]?id=?=$bqr[id]?dotop=1ajaxarea=diggnum?=$bqr[id]?" class="post-like-btn post-like" id="post-like-top-btn"
script
document.write('script src="/e/public/ViewClick/?classid=?=$bqr[classid]?id=?=$bqr[id]?down=5?t="+Math.random()+'"'+'/script');
/script
/a
/div
/div
/div
/li
[/e:loop]
功能:联合取4表数据
关联取附表简介
并取标签
附加顶功能
动态浏览量等
帝国CMS怎样制作下拉菜单?谢谢
标签调用:
页面模板内容:
lia href="[!--bclassurl--]" target="_blank" title="[!--bclassname--]"[!--bclassname--]/a
ul
[!--empirenews.listtemp--]
!--list.var1--
[!--empirenews.listtemp--]
/ul
/li
列表内容模板:
lia href="[!--classurl--]" target="_blank" title="[!--classname--]"[!--classname--]/a/li
求帝国CMS系统 标签模板调用栏目页自定义字段的方法?
例子1:显示当前栏目'ceshi'字段的内容
ceshi字段内容的调用方法就为:://6是栏目id,bl就是变量
拆分来看:ceshi1字段内容为:
ceshi2字段内容为:
帝国cms自定义的字段,怎么在列表页中调用?
你是要在哪里调用自定义字段? 假如自定义字段为:fields 如果是在列表页模版中的中调用的话:[!--fields--] 如果是在内容页模版中调用的话:[!--fields--] 如果是在灵动标签中调用的话: