導讀:織夢技術織夢技術在織夢的后臺當中如果是沒有審核的文章有很多,每次審核都要打開待審核文檔,如果內容有很多,就很麻煩,修改的方法: 打開/include/typeunit.clasdede58模板。
在織夢的后臺當中如果是沒有審核織夢的模板的文章有很多,每次審核都要打開待審核文檔,如果內容有很多,就很麻煩,修改的方法:
打開/include/typeunit.class.admin.php文件
找到:
function ListAllType
|
在上面加上下面的代碼:
//獲取所有欄目的未審核文檔ID數
function UpdateCatalogNumw()
{
$this->dsql->SetQuery("SELECT typeid,count(typeid) as dd FROM `dede_arctiny` where arcrank =-1 group by typeid");
$this->dsql->Execute();
while($row = $this-模板織夢>dsql->GetArray())
{
$this->CatalogNumsw[$row['typeid']] = $row['dd'];
}
}
function GetTotalArcw($tid)
{
if(!is_array($this->CatalogNumsw))
{
$this->UpdateCatalogNumw();
}
if(!isset($this->CatalogNumsw[$tid]))
{
return "";
}
else
{
$totalnum = 0;
$ids = explode(',',GetSonIds($tid));
foreach($ids as $tid)
{
if(isset($this->CatalogNumsw[$tid]))
{
$totalnum += $this->CatalogNumsw[$tid];
}
}
return " | dede58模板<font color=red>".$totalnum."</font> | <a href='content_i_list.php?arcrank=-1&cid=".$tid."'>圖</a> | <a href='content_list.php?arcrank=-1&cid=".$tid."'>文</a>";
}
}
|
將:
$this->GetTotalArc($id).
|
替換為:
$this->GetTotalArc($id).$this->GetTotalArcw($id).
|
注意有多個地方需要替換。這樣就會在列表頁顯示出文檔的數量,沒有審核的文檔數量就會在后面顯示出來相關dede58模板。
關鍵詞標簽: 織夢 后臺 數量
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-07-17 ,文章織夢后臺欄目怎么顯示沒有審核的文檔數量,織夢主要講述后臺,數量,織夢網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_28449.html