導讀:建站問題建站問題問題: DedeCMS織夢系統 {dede:channel type='top'} [field:description/] {/dede:channel} 為高端網站建設網站建設教程。
問題: DedeCMS織夢系統 {dede:channel type='top'} [field:description/] {/dede:channel} 為什么沒有循環出每個欄目的描述 回答: {dede:channel type='top'} [field:description/] {/dede:channel} channel 這個標簽沒有descr企業網站建設iption屬性你需要自己把這個 […]
問題:
DedeCMS織夢系統
{dede:channel type='top'}
[fie網站seo優化培訓ld:description/]
{/dede:channel}
為什么沒有循環出每個欄目的描述
回答:
{dede:channel type='top'}
[field:description/]
{/dede:channel}
channel 這個標簽沒有description屬性你需要自己把這個屬性開啟。
到你的程序目錄include\taglib\ 找到 channel.lib.php 修改一下文件
如果你想查找所有top最頂層的欄目內容的話修改
if($type=='top')
{
$sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath,description
From `58pic_arctype` WHERE reid=0 And ishidden<>1 order by sortrank asc limit 0, $line ";
}
數據庫后面添加一個字段description
$row['description']=$row['description'];//這個就是新添加的內容
$row['typelink'] = $row['typeurl'] = GetOneTypeUrlA($row);
if(is_array($dtp2->CTags))
{
foreach($dtp2->CTags as $tagid=>$ctag)
{
 網站推廣優化seo; if(isset($row[$ctag->GetName()])) $dtp2->Assign($tagid,$row[$ctag->GetName()]);
}
}
$likeType .= $dtp2->GetResult();
找到這段在前面添加一條
$row['description']=$row['description'];
然后在你的標簽就可以調用了。就這么簡單相關高端網站建設網站建設教程。
關鍵詞標簽: CMS 標簽 欄目
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-05-26 ,文章DedeCMS織夢head.htm里調用欄目描述建站問題主要講述標簽,欄目,CMS網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_10159.html