本文目录一览:
- 1、如何调用栏目的缩略图 帝国cms
- 2、怎么调栏目缩略图 帝国cms
- 3、帝国cms首页多表调用,要调用栏目缩略图+标题。
- 4、如何制作帝国cms内容页的调用栏目缩略图
- 5、帝国CMS在标签模板中怎么调用栏目缩略图
- 6、帝国cms 增加焦点图(幻灯片)缩略图功能
如何调用栏目的缩略图 帝国cms
帝国cms列表模板,页面模板内容编辑框部分,用[!--class.classimg--]调用栏目图片,前提是该栏目设置中,你要给该栏目添加有图片!
如下图
怎么调栏目缩略图 帝国cms
[e:loop={'3',24,0,0}]
lia href="?=$bqsr[classurl]?"
img width="70" height="40" 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首页多表调用,要调用栏目缩略图+标题。
本来不想回答 去年做过项目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内容页的调用栏目缩略图
TAG:帝国cms
如何制作帝国cms内容页的调用栏目缩略图
帝国cms6.0后已经无法用[!--class.classimg--]直接调用栏目缩略图了,5.1以前的能行,现在只能在列表页能用[!--class.classimg--]调用缩略图标签,现在只有用灵动或者万能标签才能调用,调用代码如下
[e:loop={"select
classimg
from
phome_enewsclass
where
classid='$GLOBAL[navclassid]'",1,24,0}]
[/e:loop]
帝国CMS在标签模板中怎么调用栏目缩略图
谁能帮我写一下代码:在标签模板中写的不是内容模板要调用栏目的缩略图谢谢设置-基本属性里面的站点名称是title\\\\网站关键字是keyword\\\\网站简介是
帝国cms 增加焦点图(幻灯片)缩略图功能
这个都是用js效果做出来的,你可以到网上搜下这些效果代码。有很多