我们知道,在内容页模板时,可直接用 {dede:field.typename/} 来表示当前文档的栏目名称。但却无法使用 {dede:field.typeurl/} 形式来调用栏目链接。
解决方法1)源码修改
打开 /include/arc.archives.class.php 文件,找到约234行如下代码:
//设置全局环境变量
$this->Fields['typename'] = $this->TypeLink->TypeInfos['typename'];
在下面一行添加
//设置全局环境变量 $this->Fields['typelink'] = $this->TypeL...