1、帝國cms系統 欄目內容列表地址路徑修改
帝國我之前用過,有點難學,後來改學pageadmin了,這種問題最好到帝國論壇去問
2、帝國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> ';
}
?>
</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表數據 關聯取附表簡介 並取標簽 附加頂功能 動態瀏覽量等
3、帝國cms新添加的數據表不能生成欄目,其他欄目正常
欄目管理,新建一個欄目,在模板設置裡面設置模板格式:如果做成頻道樣式,頁面顯示模式就勾上封面式,選擇對應的封面模板;如果是列表就選擇列表式,選擇列表模板;如果是內容頁,就在下面直接復制代碼。
設置好後在數據更新中選擇恢復欄目目錄,就可以生成頻道了。
4、帝國cms怎麼獲取列表頁當前欄目鏈接和欄目名稱
列表頁獲取當前欄目鏈接 :
<?=sys_ReturnBqClassUrl($class_r[$GLOBALS[navclassid]]);?>
列表頁獲取當前欄目名稱 :
[!--class.name--]
5、帝國cms顯示欄目ID=19的表不存在(操作類型=0)怎麼辦?
帝國CMS顯示欄目di不存在,如果你是剛開始建站的話,可以考慮把資料庫清空,重新安裝一遍就好了。
6、帝國CMS總有問題,是什麼原因!!【欄目ID=34的表不存在(操作類型=2) 】??????
首頁模板里改下代碼
調用的代碼通常是
[ecmsinfo]0,5,28,0,5,3,0[/ecmsinfo]
或者
[e:loop]開頭結尾的
用程序自帶的 《修改標簽》
如圖

在這里改,生成代碼後黏貼回去。。。不能再簡單!
7、請問帝國CMS欄目表格顯示怎麼做啊?
你的意思是:
做了一個數據模型(該數據模型簡稱為:A數據模型)
然後建立一個欄目(該欄目簡述為:B欄目)使用A數據模型
然後在B欄目中存儲上述你的圖片所展示的信息
是這個意思嗎?
如果是這個意思的話,請在A數據模型中定義:
證書編號欄位field1
姓名欄位field2
性別欄位field3
批准日期欄位field4
考級單位欄位field5
證書欄位field6
然後,在定義這個模型中的上述6個欄位可以在列表頁展示
然後自己在列表頁模版中寫相應的模版,如:
<table>
<tr>
<th>證件編號</th>
<th>姓名</th>
<th>性別</th>
<th>批准日期</th>
<th>考級單位</th>
<th>證書</th>
<th>查看</th>
</tr>
[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]
</table>
然後在list.var中寫入如下模版信息:
<tr>
<td>[!--field1--]</td>
<td>[!--field2--]</td>
<td>[!--field3--]</td>
<td>[!--field4--]</td>
<td>[!--field5--]</td>
<td>[!--field6--]</td>
<td><a href="[!--titleurl--]">查看</a></td>
</tr>
8、帝國cms欄目id是哪個表
phome_enewsclass
9、如何在帝國CMS中添加表格欄目
用附件組,需要修改列表頁模塊,帝國感覺修改起來比較麻煩,你可以用pageadmin來改,這個上手快一點