# dedecms去掉面包屑导航（当前位置position）最后的连接符

*Published:* 2023-10-06
*Author:* 客服001

#### 温馨提醒

如果文章内容或图片资源失效，请留言反馈，我们会及时处理，谢谢

本文最后更新于2023年10月6日，已超过 180天没有更新



办法一：打开文件include/typelink.class.php，修改代码：

```
return $this->valuePosition.$this->SplitSymbol;
```

修改为：

```
return $this->valuePosition;
```

办法二：修改{dede:field name=’[position](https://www.xarjtc.com/tag/position "查看position此标签更多文章")’/}调用，其代码如下：

```
{dede:field name=’position’ runphp=’yes’}
$a=mb_strlen(@me);//计算字符串的长度
@me=cn_substr(@me,$a-2,-1);//截取字符
{/dede:field}
```