關于DedeCMS專題頁面的文章的調用,下面給出三種調用方式,可以解決全部頁面的調用(首頁、一級、二級、單頁、內容頁均有適合的)
第一:
-
{dede:arclistflag='c'type='spec'titlelen=40row=10orderby=pubdate}
第二:
-
{dede:arclistflag='c'channelid='-1'typeid='1,2,3,4,5,200,202'type='spec'
-
titlelen=40row=10orderby=pubdate}
第三:
-
{dede:arclistgetall='1'flag='c'channelid='-1'typeid='1,2,3,4,5,200,202'
-
type='spec'titlelen=40orderby=pubdaterow=2limit='0,2'}
=====================================================================
搜遍DEDE發現大家都有一個問題就是專題調用,總是出錯,或者干脆就調不出來。 下面給出三種調用方式,可以解決全部頁面的調用(首頁、一級、二級、單頁、內容頁均有適合的)
第一:
-
{dede:arclistflag='c'type='spec'titlelen=40row=10orderby=pubdate}
第二:
-
{dede:arclistflag='c'channelid='-1'typeid='1,2,3,4,5,200,202'type='spec'
-
titlelen=40row=10orderby=pubdate}
第三:
-
{dede:arclistgetall='1'flag='c'channelid='-1'typeid='1,2,3,4,5,200,202'
-
type='spec'titlelen=40orderby=pubdaterow=2limit='0,2'}
解釋說明:第三條為本D友獨創,呵呵O(∩_∩)O~,主要是查看了源碼后才發現的。好處就是可以隨心所欲第調用。例如你要調用一級欄目下所有的專題,只要typeid=' '中輸入頂級欄目ID就可以了,無須二級欄目ID,支持跨級調用。