ded dedecms
>dede>>文檔列表全域標記V55,V56,V57擷取指定文檔列表{dede:arclist flag='h' typeid='' row='' col='' titlelen='' infolen='' imgwidth='' imgheight='' listtype='' orderby='' keyword='' limit='0,1'}[field:title/]{/dede:arclist} col:分多少列顯示(預設為單列),5.3版中本屬性可以通過多種方式進行多行顯示 row:返迴文檔列表總數 typeid:欄目ID,在列表模板和檔案模板中一般不需要指定,在首頁模板中允許用","分開表示多個欄目 getall:在沒有指定這屬性的情況下,在欄目頁、文章頁模板,不會擷取以","分開的多個欄目的下級子類 titlelen:標題長度 等同於titlelength infolen:表示內容簡介長度 等同於infolength imgwidth:縮圖寬度 imgheight:縮圖高度 listtype: 欄目類型 image含有縮圖 commend推薦 orderby:文檔排序方式 keyword:含有指定關鍵字的文檔列表,多個關鍵字用","分 innertext:單條記錄樣式 aid:指定文檔ID idlist:提取特定文檔(文檔ID channelid:頻道ID limit:(起始ID從0開始)表示限定的記錄範圍(如:limit='1,2' 表示從ID為1的記錄開始,取2條記錄 flag:自訂屬性值:頭條[h]推薦[c]圖片[p]幻燈[f]滾動[s]跳轉[j]圖文[a]加粗[b] noflag:同flag,但這裡是表示不包含這些屬性 orderway:值為 desc 或 asc ,指定排序方式是降序還是順向排序,預設為降序 subday:表示在多少天以內的文檔 >>dede>>*/function lib_arclist( &$ctag, &$refObj ){ global $envs; $autopartid = 0; $tagid = ''; $tagname = $ctag->GetTagName(); $channelid = $ctag->GetAtt('channelid'); //增加對分頁內容的處理 $pagesize = $ctag->GetAtt('pagesize'); if($pagesize == '') { $multi = 0; } else { $tagid = $ctag->GetAtt('tagid'); } // arclist是否需要weight排序,預設為"N",如果需要排序則設定為"Y" $isweight = $ctag->GetAtt('isweight'); if($tagname=='imglist' || $tagname=='imginfolist') { $listtype = 'image'; } else if($tagname=='specart') { $channelid = -1; $listtype=''; } else if($tagname=='coolart') { $listtype = 'commend'; } else if($tagname=='autolist') { $autopartid = $ctag->GetAtt('partsort'); } else { $listtype = $ctag->GetAtt('type'); } //排序 if($ctag->GetAtt('sort')!='') $orderby = $ctag->GetAtt('sort'); else if($tagname=='hotart') $orderby = 'click'; else $orderby = $ctag->GetAtt('orderby'); //對相應的標記使用不同的預設innertext if(trim($ctag->GetInnerText()) != '') $innertext = $ctag->GetInnerText(); else if($tagname=='imglist') $innertext = GetSysTemplets('part_imglist.htm'); else if($tagname=='imginfolist') $innertext = GetSysTemplets('part_imginfolist.htm'); else $innertext = GetSysTemplets("part_arclist.htm"); //相容titlelength if($ctag->GetAtt('titlelength')!='') $titlelen = $ctag->GetAtt('titlelength'); else $titlelen = $ctag->GetAtt('titlelen'); //相容infolength if($ctag->GetAtt('infolength')!='') $infolen = $ctag->GetAtt('infolength'); else $infolen = $ctag->GetAtt('infolen'); $typeid = trim($ctag->GetAtt('typeid')); if(empty($typeid)) { $typeid = ( isset($refObj->Fields['typeid']) ? $refObj->Fields['typeid'] : $envs['typeid'] ); } if($listtype=='autolist') { $typeid = lib_GetAutoChannelID($ctag->GetAtt('partsort'),$typeid); } if($ctag->GetAtt('att')=='') { $flag = $ctag->GetAtt('flag'); } else { $flag = $ctag->GetAtt('att'); } return lib_arclistDone ( $refObj, $ctag, $typeid, $ctag->GetAtt('row'), $ctag->GetAtt('col'), $titlelen, $infolen, $ctag->GetAtt('imgwidth'), $ctag->GetAtt('imgheight'), $listtype, $orderby, $ctag->GetAtt('keyword'), $innertext, $envs['aid'], $ctag->GetAtt('idlist'), $channelid, $ctag->GetAtt('limit'), $flag,$ctag->GetAtt('orderway'), $ctag->GetAtt('subday'), $ctag->GetAtt('noflag'), $tagid,$pagesize,$isweight );}
完全看不懂怎麼解析的的 {dede: article 函數也找不到調用的地方 蛋疼啊 讓我蛋疼的是 最終產生的PHP代碼放在哪裡了 他又是如何產生html代碼的 各種問題 各種蛋疼
回複討論(解決方案)
你開啟織夢預設的模板,首頁有幻燈效果,你應該學會模枋。加群:153436140
你開啟織夢預設的模板,首頁有幻燈效果,你應該學會模枋。加群:153436140 代碼我會寫 我在研究底層哈 準備重新寫個cms來學習
建議學習smarty
調用的方法一步一步的跳,肯定能找到,或者看下文檔吧。