本文目录一览:
- 1、帝国cms 调用某一栏目下所有图片的方法
- 2、怎么调栏目缩略图 帝国cms
- 3、如何调用栏目的缩略图 帝国cms
- 4、帝国cms首页多表调用,要调用栏目缩略图+标题。
- 5、帝国CMS在标签模板中怎么调用栏目缩略图
帝国cms 调用某一栏目下所有图片的方法
用哪个标签实际上无所谓
[ecmsinfo]1,10,32,0,0,1,1[/ecmsinfo]
调用对象选栏目即可了,在标签模板里调用文章的缩略图,就是前面加small,点进去是他的简介,可以设置会员空间,也可以是php文件的调用会员信息。完全可以实现。
怎么调栏目缩略图 帝国cms
[e:loop={'3',24,0,0}]
lia href="?=$bqsr[classurl]?"
img src="?=$bqr[classimg]?" //a/li
[/e:loop]
或者指定ID
[e:loop={"select classid,classname,classimg,intro from phome_enewsclass where classid=3",1,24,0}]
lia href="?=$bqsr[classurl]?" target="_blank"spanimg src="?=$bqr[classimg]?" alt="?=$bqr[classname]?"/span?=$bqr[classname]?/a/li
[/e:loop]
你参考下
如何调用栏目的缩略图 帝国cms
帝国cms列表模板,页面模板内容编辑框部分,用[!--class.classimg--]调用栏目图片,前提是该栏目设置中,你要给该栏目添加有图片!
如下图
帝国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/spannbsp;nbsp;';
}
?
/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在标签模板中怎么调用栏目缩略图
谁能帮我写一下代码:在标签模板中写的不是内容模板要调用栏目的缩略图谢谢设置-基本属性里面的站点名称是title\\\\网站关键字是keyword\\\\网站简介是