dedeCMS面包屑导航

一.Dedecms当前位置:

{dede:field name='position'/}

二:去掉“>”

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

(这是去掉“>”的方法)

方法三.、{dede:field name=‘position’/} 中去掉 > 并去掉最后一个文本的链接的解决方案

 {dede:field name='position' runphp='yes'}
    $tc=" > ";                 
    $tf=split($tc,@me);                       
    $tn=count($tf);
    for($iij=0;$iij<($tn-1);$iij++){
        if($iij==($tn-2)){$tf[$iij]=strip_tags($tf[$iij]);}
        $tl=$tl.$tf[$iij];
    }
    @me=$tl;
   echo @me;
{/dede:field}

如果还需要分隔符的话,就把 t l = tl= tl=tl. t f [ tf[ tf[iij]; 换成
t l = tl= tl=tl.“空格分隔符空格”. t f [ tf[ tf[iij];

#3 方法四.您当前所在的位置:

<a href="/">本站首页</a> >
{dede:channel type='top' currentstyle="<a href='~typelink~'>~typename~</a>"}
{/dede:channel} >
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值