织梦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;

 

相关文章:

  • 2021-08-04
  • 2021-12-26
  • 2021-05-29
  • 2021-11-27
  • 2021-07-07
猜你喜欢
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
  • 2021-12-09
  • 2021-07-21
  • 2022-12-23
相关资源
相似解决方案