系統(tǒng)維護->數(shù)據(jù)備份”中單擊category表就知道了,字段有說明的三、顯示... PHP開源內(nèi)容管理系統(tǒng)(PhpOpenSourceCMS簡稱POSCMS)是Php+Mysql開發(fā)的一款開源的跨平臺網(wǎng)站內(nèi)容管理系統(tǒng),程序無加密代碼,非常適合二次開發(fā)的CMS系統(tǒng)" />

ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

一、作用

顯示指定共享欄目的單條數(shù)據(jù)信息


二、調(diào)用函數(shù)

dr_share_cat_value


參數(shù)編號
介紹
參數(shù)1欄目id號
參數(shù)2
字段名稱


三、顯示字段


字段名
介紹
pid上級欄目的id,當為0時表示頂級欄目
pids
上級欄目的id集合,格式:0,上級id1,上級id2...
name欄目的名稱
tid欄目類型,0單頁,1模塊,2外鏈
mid模塊id
domain頂級欄目綁定的域名
content單頁內(nèi)容
dirname
目錄名稱,唯一標識
pdirname含父級目錄名稱,上級目錄1/上級目錄2/當前目錄
child當?shù)扔?時表示,此欄目有子類
childids所以子類id(含當前id),格式:當前id,下級id1,下級id2
thumb
縮略圖,必須使用dr_thumb函數(shù)調(diào)用縮略圖字段
total欄目數(shù)據(jù)量(更新欄目緩存之后數(shù)據(jù)量才會統(tǒng)計,統(tǒng)計量頁可以使用ci的統(tǒng)計方法實現(xiàn))
topid頂級欄目id
catids
所有子欄目id,格式為數(shù)組,和childids值差不多,只是格式不同


四、相關(guān)例子

1、查詢站點中的欄目id=5的欄目名稱

名稱 {dr_share_cat_value(5, 'name')}
url {dr_share_cat_value(5, 'url')}
內(nèi)容 {dr_share_cat_value(5, 'content')}
圖片 {dr_get_file(dr_share_cat_value(5, 'thumb'))}
截取內(nèi)容100個字 {dr_strcut(dr_clearhtml(dr_share_cat_value(5, 'content')), 100)}

2、欄目配置屬性的調(diào)用方式

{dr_share_cat_value(5, 'setting', '屬性表單name')}

3、在列表頁面調(diào)用此文章的欄目名稱和URL

{list action=module module=share .....標準的查詢我就不寫了}
欄目名稱 {dr_share_cat_value($t['catid'], 'name')} 
.............................
欄目地址 {dr_share_cat_value($t['catid'], 'url')} 
.............................
欄目圖片 {dr_get_file(dr_share_cat_value($t['catid'], 'thumb'))}
{/list}

4、調(diào)用指定欄目的單頁內(nèi)容

{dr_share_cat_value(5, 'content')}


文檔最后更新時間:2017-06-27 03:38:07