5UCMS後台內容管理實現大類列表

2021-08-25 18:18:52 字數 1174 閱讀 2443

不說廢話,直接上**。實現後台內容大類分頁,同前台一樣,需要修改原始碼。在此csshaier提醒您,若是沒有asp基礎,請勿修改!

1,開啟admin/admin_content.asp檔案,找到以下**

sub main()

if len(key) > 0 then

if instr(",id,cid,commend,views,comments,orders,display,","," & dfieldkey & ",") > 0 then

if len(key) > 0 and isnumeric(key) then sql = "[" & dfieldkey & "]=" & key & ""

else

sql = "[" & dfieldkey & "] like '%" & key & "%'"

end if

end if

2、將以上**整體替換成以下**

sub main()

if len(key) > 0 then

if instr(",id,cid,commend,views,comments,orders,display,","," & dfieldkey & ",") > 0 then

' ↓修改欄目顯示內容 by csshaier↓

dim tag_where,cid,n

n= db("select [childid],[childids] from [channel] where cid = "& key,1)

if len(n(0)) > 0 then

cid=n(1)

tag_where="or [cid] in ("&n(1)")"

else

cid= key

tag_where=""

end if

'↑修改大類顯示內容↑

if len(key) > 0 and isnumeric(key) then sql = "[" & dfieldkey & "]=" & key & tag_where""

else

sql = "[" & dfieldkey & "] like '%" & key & "%' "&tag_where

end if

end if

3、經測試,0409版和v1.2 2024版可用!

實現5ucms後台內容管理頁面欄目樹形導航

無憂cms的輕便靈巧曾是廣大站長朋友的不二選擇,然一旦 欄目眾多的時候,在它的後台內容頁面的欄目導航就顯得眼花繚亂,就連自己都分不清哪個是一級欄目,哪個是二級欄目了,為此csshaier也是苦惱不已,於是興起了給它改造的念頭。我想實現的是什麼呢?1,大類要顯示列表,這個在之前的5ucms後台內容管理...

個人收藏5Ucms 標籤整理

當前欄目id 當前頁面id 當前頁面內容 list modifytime format yy mm dd 文章發布時間,格式 2012年8月1日 list titlex len 30 推薦文章 子欄目呼叫父欄目名稱 channel cname 內容頁呼叫欄目名稱 list name 子欄目呼叫同級欄...

5UCMS判斷當前欄目高亮標籤

比較簡單的是頻道頁 channel.html 大類 menu cname 小類 當前欄目為頻道頁時,小類無高亮顯示 channel cname 接下來是列表頁 list.html 大類 注意裡的判斷 main cname 小類 child name 大類 main cname 小類 child na...