導航:首頁 > 萬維百科 > 帝國cms判斷欄目縮略圖片

帝國cms判斷欄目縮略圖片

發布時間:2020-11-10 16:44:09

1、帝國cms首頁調用欄目最新文章,前四條顯示圖片,其它的沒有圖片

你也是用靈動標簽調取的吧!
前四條新聞可以添加時候設置一級推薦,在靈動標簽調取的時候選擇該欄目下的一級推薦文章,後面不帶圖片的設置成推薦為0,即'isgood=0'就可以了。

2、帝國CMS 首頁 和列表 靈動標簽里 判斷 有無縮略圖?

[

3、如何調用欄目的縮略圖 帝國cms

[e:loop={"select classid,classname,classimg,intro from phome_enewsclass where classid=欄目id",1,24,0}]
欄目名:<a href="/e/public/ClassUrl?classid=<?=$bqr[classid]?>"><?=$bqr[classname]?></a>
欄目縮略圖:<img src="<?=$bqr[classimg]?>">
欄目簡介:<?=$bqr[intro]?>
[/e:loop]

4、帝國cms 調用某一欄目下所有圖片的方法

用哪個標簽實際上無所謂
[ecmsinfo]1,10,32,0,0,1,1[/ecmsinfo]
調用對象選欄目即可了,在標簽模板里調用文章的縮略圖,就是前面加small,點進去是他的簡介,可以設置會員空間,也可以是php文件的調用會員信息。完全可以實現。

5、帝國CMS在標簽模板中怎麼調用欄目縮略圖

誰能幫我寫一下代碼:在標簽模板中寫的不是內容模板要調用欄目的縮略圖謝謝設置-基本屬性裡面的站點名稱是title\\\\網站關鍵字是keyword\\\\網站簡介是

6、帝國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">
<h1><a 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;$i<2;$i++)
            {
            echo'<span><a href="/liaotian/tags-'.$keyr[$i].'-0.html" target=_blank>'.$keyr[$i].'</a></span>&nbsp;&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=1&ajaxarea=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表數據 關聯取附表簡介 並取標簽 附加頂功能 動態瀏覽量等

7、如何製作帝國cms內容頁的調用欄目縮略圖

T

8、如何製作帝國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]

9、靈動標簽怎麼調用欄目縮略圖 帝國cms

[e:loop={'3',24,0,0}]
<li><a 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}]
<li><a href="<?=$bqsr[classurl]?>" target="_blank"><span><img src="<?=$bqr[classimg]?>" alt="<?=$bqr[classname]?>"></span><?=$bqr[classname]?></a></li>
[/e:loop]

你參考下

與帝國cms判斷欄目縮略圖片相關的知識