用过织梦的朋友都知道,默认的面包屑导航会有字符,有时候需要进行删除,今天给大家分享一下织梦网站面包屑导航的修改方法。
删除当前位置里的超链接,只保留文字。
例如:
主 页 > 企业简介 > 组织结构
修改方法一:
文件\include\arc.archives.class.php 文件\include\arc.listview.class.php 文件\include\arc.partview.class.php
把三个文件里面的这句
Fields['position'] = $this->TypeLink->GetPositionLink(true);
都改成
Fields['position'] = $this->TypeLink->GetPositionLink(false);
修改方法二:
{dede:field name='position' function="strip_tags(@me)"/}
或者{dede:field name='position' function="html2txt(@me)"/}
您当前所在的位置:
<a href="/">本站首页</a> >{dede:channel type='top' currentstyle="<a href='~typelink~'>~typename~</a>"}{/dede:channel} >{dede:channel currentstyle="<a href='#'>~typename~</a>"}{/dede:channel}
说的不错,感谢分享