織夢DedeCms的麪包屑導航調用標籤{dede:field name=’position’ /},在欄目頁裏調用的麪包屑導航,最後會出現分割符號“>”,如:主頁 > DedeCms 模板 >
用下面這兩種方法可以將最後的分割符“>”,用如下代碼調用麪包屑導航標籤:
{dede:field name=’position’ runphp=’yes’}
$a=mb_strlen(@me);//計算字符串的長度
@me=cn_substr(@me,$a-2,-1);//截取字符
{/dede:field}
或者修改系統文件,編輯打開include/typelink.class.php 文件。
查找: return $this->valuePosition.$this->SplitSymbol;
修改爲:return $this->valuePosition;