帝國CMS迴圈子欄目標籤listsonclass介紹_PHP教程

來源:互聯網
上載者:User

迴圈子欄目資料標籤(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)) { ?>
  1. " title="">·
[/e:loop]

http://www.bkjia.com/PHPjc/752555.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/752555.htmlTechArticle迴圈子欄目資料標籤(listsonclass) 標籤名稱:迴圈子欄目資料標籤 (sys_ForSonclassData) 格式:[listsonclass]欄目ID,顯示條數,標題截取數,是否顯示欄...

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.