您现在的位置是:首页 >> 网站建设教程网站建设教程

判断是否有下级栏目,有就显示所有下级栏目,

董哥2023-09-2522次围观

以下是相关标签: 

标签名称:channel 
功能说明: 
获取栏目列表标签 
使用实例: 

 

 

1 {dede:channel type='top' row='8' currentstyle="
  • ~typename~
  • "}
2  
  • '[field:typelink/]'>[field:typename/]
3 {/dede:channel}


参数说明: 
typeid = '0' 栏目ID 
reid = '0' 上级栏目ID 
row = '100' 调用栏目数 
col = '1' 分多少列显示(默认为单列) 
type = 'son' son表示下级栏目,self表示同级栏目,top顶级栏目 
currentstyle = '' 应用样式 

实现如下:

 

 

1 {dede:channel name='type' runphp='yes' if(reid == "0") @me = "son";else@me = "self";}
2 '[field:typeurl/]'>[field:typename/]
3 {/dede:channel}
 

 

 

 

标签云

站点信息