PHPCMS專題模塊PC標簽調用說明:1、專題列表(lists);2、專題信息列表(content_list)3、專題內容排行榜(hits)...
專題模塊PC標簽調用說明
模塊名:special
模塊提供的可用操作
- 操作名 說明
- lists 專題列表
- content_list 專題信息列表
- hits 專題信息點擊排序
下面對所有的操作分開說明
1、專題列表,lists,可用參數:
- 參數名 是否必須 默認值 說明
- siteid 否 當前站點 站點ID
- elite 否 null 是否推薦
- isthumb 否 null 必須有縮略圖
- listorder 否 null 排序方式
代碼例子:
- {pc:special action="lists" siteid="$siteid" elite="1" listorder="2" num="3"}
- <divclass="changeDiv">
- {loop $data $r}
- <a href="{$r['url']}"><img src="{thumb($r['thumb'], 224, 112)}" width="224" height="112" alt="{$r['title']}" /><p><strong>{$r['title']}</strong> {$r['description']}</p></a> //Vevb.com
- {/loop}
- </div>
- {/pc}
返回參數如下表:
- 字段 類型 空 默認 注釋
- siteid smallint(5) 否 所屬站點ID 站點ID
- id smallint(5) 否 0 專題ID
- title char(60) 否 NULL 專題名稱
- thumb char(255) 否 NULL 專題縮略圖
- banner char(100) 是 0 專題橫幅
- description char(255) 是 0 專題導讀
- url char(100) 是 0 專題url地址
- ishtml tinyint(1) 否 0 生成靜態
- ispage tinyint(1) 是 0 首頁實現分頁
- createtime int(10) 是 0 創建時間
新聞熱點
疑難解答