muban大师 发表于 2020-4-20 19:51:36

使用channel标签时指定typeid=x值currentstyle无效的解决方法

使用channel标签时指定typeid=x值currentstyle无效的解决方法
       
        今天在帮助客户制作织梦dedecms企业模板时使用channel来调子栏目,指定 “type=son typeid=x” 发现currentstyle无效:
          {dede: type='son' typeid='12' currentstyle=" "}
                      [*,
          {/dede:channel}
        解决的办法:把typeid=‘12’改为channel=‘1’ (文章模型id),首页除外,其他页面不需要指定typeid=x,会自动判断当前位置.
           {dede: type='son' channel='1' currentstyle=" "}
                      [*,
          {/dede:channel}
        另外,这样也是可以的(具体什么效果,自己试试吧)
           {dede:channel type='son'currentstyle=" "}
                   [*,
           {/dede:channel}
页: [1]
查看完整版本: 使用channel标签时指定typeid=x值currentstyle无效的解决方法