织梦channel子栏目导航标签currentstyle鼠标点击高亮变色加

织梦channel子栏目导航标签currentstyle鼠标点击高亮变色加,第1张

织梦channel子栏目导航标签currentstyle鼠标点击高亮变色加 dedecms织梦channel子栏目导航标签currentstyle鼠标点击高亮变色加class样式 。
.red2{color:red;} 如果点击了其他页面不加class='red2',当点击或者首次打开首页的时候会加class   Markup
  • 首页
  • 如果点击了其中的一个栏目则则这个栏目增加class='red2'变色   Markup {dede:channel type='top' row='8' currentstyle="
  • ~typename~
  • " }
  • [field:typename/]
  • {/dede:channel} 注意:   如果是子栏目currentstyle这个标签是不生效的。需要改个配置   currentstyle无效的修复办法:   修改include/taglib/channel.lib.php    133行。   PHP if( ($row['id']==$typeid || ($topid==$row['id'] && $type=='top') ) && $currentstyle!='' ) 修改为     PHP if( ($row['id']==$refObj->Typelink->TypeInfos['id'] || ($topid==$row['id'] && $type=='top') ) && $currentstyle!='' ) 下面是子栏目currentstyle的调用   Markup {dede:channel typeid='3' currentstyle="
  • ~typename~
  • " }
  • [field:typename/]
  • {/dede:channel}

    欢迎分享,转载请注明来源:内存溢出

    原文地址:https://54852.com/zaji/3007214.html

    (0)
    打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
    上一篇 2022-09-27
    下一篇2022-09-27

    发表评论

    登录后才能评论

    评论列表(0条)

      保存