phpcms3.0 文章頻道標簽說明_PHPCms教程
教程Tag:暫無Tag,歡迎添加,賺取U幣!
標簽名: 文章列表調用標簽
作 用:顯示文章列表
調用例舉:首頁最新文章列表 {$articlelist(0,1,0,1,0,0,10,46,0,0,0,1,2,0,0,0,1,1)}
參 數
序號 參數 -- 說明 1 templateid -- 此標簽調用的模板id 2 channelid -- 調用文章所屬頻道id,假如多個頻道共用同一個模板,則請使用變量$channelid作為參數 3 catid -- 調用文章所屬欄目ID,多個ID之前用半角逗號隔開,0表示不限欄目某些情況下可使用變量$catid作為參數 4 child -- 調用文章所屬子欄目ID 5 specialid -- 調用文章所屬專題ID,多個ID之前用半角逗號隔開,0表示不限專題某些情況下可使用變量$specialid作為參數 6 page -- 是否分頁顯示 0為 否, 1為 是 7 articlenum -- 每頁文章數 8 titlelen -- 文章標題最大字符數 9 descriptionlen -- 內容摘要最大字符數 10 iselite -- 是否為推薦文章 0為 否, 1為 是 11 datenum -- 多少天以內的文章 12 ordertype --文章排序方式 1為 按文章ID降序
2為 按文章ID升序
3為 按更新時間降序
4為 按更新時間升序
5為 按點擊數降序
6為 按點擊數升序 13 datetype -- 時間顯示格式 0為 不顯示
1為 2006-06-26
2為 06-26
3為 2006/06/26
4為 2006.06.26 14 showcatname -- 是否在文章標題前顯示欄目名稱,0為 否, 1為 是 15 showauthor -- 是否在標題后面顯示作者,0為 否, 1為 是 16 showhits -- 是否在標題后面顯示瀏覽次數,0為 否, 1為 是 17 target -- 是否在新窗口打開鏈接 0為 否, 1為 是 18 cols --顯示文章標題列數 1為 1列
{$articlelist(templateid,channelid,catid,child,specialid,page,articlenum,titlelen,descriptionlen,iselite,datenum,ordertype,datetype,showcatname,showauthor,showhits,target,cols)}
作 用:顯示文章列表
調用例舉:首頁最新文章列表 {$articlelist(0,1,0,1,0,0,10,46,0,0,0,1,2,0,0,0,1,1)}
參 數
序號 參數 -- 說明 1 templateid -- 此標簽調用的模板id 2 channelid -- 調用文章所屬頻道id,假如多個頻道共用同一個模板,則請使用變量$channelid作為參數 3 catid -- 調用文章所屬欄目ID,多個ID之前用半角逗號隔開,0表示不限欄目某些情況下可使用變量$catid作為參數 4 child -- 調用文章所屬子欄目ID 5 specialid -- 調用文章所屬專題ID,多個ID之前用半角逗號隔開,0表示不限專題某些情況下可使用變量$specialid作為參數 6 page -- 是否分頁顯示 0為 否, 1為 是 7 articlenum -- 每頁文章數 8 titlelen -- 文章標題最大字符數 9 descriptionlen -- 內容摘要最大字符數 10 iselite -- 是否為推薦文章 0為 否, 1為 是 11 datenum -- 多少天以內的文章 12 ordertype --文章排序方式 1為 按文章ID降序
2為 按文章ID升序
3為 按更新時間降序
4為 按更新時間升序
5為 按點擊數降序
6為 按點擊數升序 13 datetype -- 時間顯示格式 0為 不顯示
1為 2006-06-26
2為 06-26
3為 2006/06/26
4為 2006.06.26 14 showcatname -- 是否在文章標題前顯示欄目名稱,0為 否, 1為 是 15 showauthor -- 是否在標題后面顯示作者,0為 否, 1為 是 16 showhits -- 是否在標題后面顯示瀏覽次數,0為 否, 1為 是 17 target -- 是否在新窗口打開鏈接 0為 否, 1為 是 18 cols --顯示文章標題列數 1為 1列
相關PHPCms教程:
- 相關鏈接:
- 教程說明:
PHPCms教程-phpcms3.0 文章頻道標簽說明。