织梦DedeCMS实现 三级栏目_二级栏目_一级栏目_网站名称 的效果代码
1.将官方原来的排列方式反过来,找到include/typelink.class.php第164行
$this->valuePositionName = $tinfos['typename'].$this->SplitSymbol.$this->valuePositionName;
修改为:
$this->valuePositionName = $this->valuePositionName.$this->SplitSymbol.$tinfos['typename'];
2.修改include/arc.listview.class.php文件。将
$this->Fields['title'] = ereg_replace("[<>]"," / ",$this->TypeLink->GetPositionLink(false));
修改为:
$this->Fields['title'] = ereg_replace("[<>]","_",$this->TypeLink->GetPositionLink(false));
模板调用:
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>