DEDECMS5.5 栏目页标题的修改
此文件的路径为:
\include\typelink.class.php
主要修改 164行
Code
改为
function LogicGetPosition($id,$islink)
{
$this->dsql->SetQuery("Select id,reid,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath From #@__arctype where id='".$id."'");
$tinfos = $this->dsql->GetOne();
if($islink)
{
$this->valuePosition = $this->GetOneTypeLink($tinfos).$this->SplitSymbol.$this->valuePosition;
}
else
{
$this->SplitSymbol.$this->valuePositionName;
}
if($tinfos['reid']>0)
{
$this->LogicGetPosition($tinfos['reid'],$islink);
}
else
{
return 0;
}
}
{
$this->dsql->SetQuery("Select id,reid,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath From #@__arctype where id='".$id."'");
$tinfos = $this->dsql->GetOne();
if($islink)
{
$this->valuePosition = $this->GetOneTypeLink($tinfos).$this->SplitSymbol.$this->valuePosition;
}
else
{
$this->SplitSymbol.$this->valuePositionName;
}
if($tinfos['reid']>0)
{
$this->LogicGetPosition($tinfos['reid'],$islink);
}
else
{
return 0;
}
}
调整显示为:
栏目1_SiteName
(栏目1)子栏目1_SiteName