迴圈子欄目資料標籤(listsonclass)
標籤名稱:迴圈子欄目資料標籤 (sys_ForSonclassData)
格式:[listsonclass]欄目ID,顯示條數,標題截取數,是否顯示欄目名,操作類型,模板ID,只顯示有標題圖片,顯示欄目數[/listsonclass]
參數說明:
- 欄目ID:父欄目ID,單個為父系類別ID,多類別可用","格開,'0'為顯示所有一級欄目的資訊。
- 顯示條數:顯示前幾條記錄。
- 標題截取數:截取幾個字元。
- 是否顯示欄目名:0為不顯示,1為顯示。
- 操作類型:0-欄目最新;1-欄目熱門;2-欄目推薦;3-欄目評論排行;4-欄目頭條;5-欄目下載排行。
- 標籤模板ID:此標籤所用的標籤模板ID。
- 只顯示有標題圖片:0為不限制,1為只顯示有標題圖片的資訊。
- 顯示欄目數:0為不限制。
| 參數 |
參數說明 |
| 欄目ID |
父欄目ID 單個為父系類別ID 多類別可用","格開 '0'為顯示所有一級欄目的資訊 |
| 顯示條數 |
顯示前幾條ā記錄 |
| 標題截取數 |
截取幾個字元 |
| 是否顯示欄目名 |
0為不顯示,1為顯示 |
| 操作類型 |
0:欄目最新 1:欄目熱門 2:欄目推薦 3:欄目評論排行 4:欄目頭條 5:欄目下載排行 |
| 標籤模板ID |
此標籤所用的標籤模板ID |
| 只顯示有標題圖片 |
0為不限制,1為只顯示有標題圖片的資訊 |
| 顯示欄目數 |
0為不限制 |
| 顯示頭條操作類型 |
0:不顯示欄目頭條 1:欄目內容簡介 2:欄目推薦資訊 3:欄目頭條資訊 4:欄目最新資訊 |
| 頭條標題截取數 |
截取幾個字元 |
| 頭條簡介截取數 |
截取幾個字元 |
| 頭條只顯示有標題圖片 |
0為不限制,1為只顯示有標題圖片的資訊 |
頭條的模板變數 (標籤模板的頁面模板內容中使用) |
[!--sonclass.id--]:資訊ID [!--sonclass.title--]:資訊標題 [!--sonclass.oldtitle--]:資訊標題(不截取字數) [!--sonclass.titlepic--]:標題圖片 [!--sonclass.titleurl--]:資訊連結 [!--sonclass.text--]:資訊簡介 |
舉例說明:
[listsonclass]9,2,14,0,0,7,0,2[/listsonclass] 欄目ID為9 顯示條數為2 標題截取數為14個字元 是否顯示欄目名0為不顯示 操作類型為0 模板ID為7 只顯示有標題圖片0為不限制 顯示欄目數為2 |
那麼這個程式上是如何?呢?可以參考下面:
[e:loop={"select classid, classname, classpath from `[!db.pre!]enewsclass` where bclassid='$bclassid' order by `classid` desc ",7,24,0}]fetch1("select title,titlepic,smalltext,titleurl,keyboard,groupid,classid,newspath,filename,id from phome_ecms_news where classid = ".$bqr[classid]." and titlepic!='' order by newstime desc limit 1");$commbookurl=sys_ReturnBqTitleLink($commbook);?> >
">更多>>
-
">" width="108px" height="85px" />
-
">
query("select title,titlepic,smalltext,titleurl,keyboard,newstime,groupid,classid,newspath,filename,id from phome_ecms_news where classid =".$bqr[classid]." order by newstime desc limit 5"); while($r=$empire->fetch($newbook)) { ?>
- " title="">·
[/e:loop]
http://www.bkjia.com/PHPjc/752555.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/752555.htmlTechArticle迴圈子欄目資料標籤(listsonclass) 標籤名稱:迴圈子欄目資料標籤 (sys_ForSonclassData) 格式:[listsonclass]欄目ID,顯示條數,標題截取數,是否顯示欄...