dede的channel标签有关问题

fieldset{padding:10px;}

dede的channel标签问题{dede:channel type=’top’ typeid=’1,3,7′ row=’6′ current> <li><a href='[field:typeurl/]’>[field:typename/]</a></li> {/dede:channel}为什么typeid没有作用? 求解决方法,只想要top顶级栏目的制定的typeid,我用的是5.6的。感激不尽!!!——解决方案——————————————————–{dede:channel type=’top’ typeid=’1,3,7′ row=’6′} current><li><a href='[field:typeurl/]’>[field:typename/]</a></li>{/dede:channel}——解决方案——————————————————–{dede:channel type=’top’ typeid=’1,3,7′ row=’6′ }总共就三个id 你还要取6行!!!!!!——解决方案——————————————————–直接这样{dede:channel typeid=’1,3,7′}<li><a href='[field:typeurl/]’>[field:typename/]</a></li>{/dede:channel}——解决方案——————————————————–【Channel 标记】 功能说明:用于获取栏目列表 适用范围:封面模板、列表模板、文档模板 (1)基本语法{dede:channel row=” type=”}自定义样式模板(InnerText){/dede:channel} (2)属性 [1] row=’数字’ 表示获取记录的条数(通用在某级栏目太多的时候使用,默认是 8) [2] type = top,sun/son,self type=’top’ 表示顶级栏目type=’son’ 或 ‘sun’ 表示下级栏目type=’self’ 表示同级栏目 其中后两个属性必须在列表模板中使用。 (3)底层模板变量 ID,typename,typedir,typelink(仅表示栏目的网址) 例:{dede:channel type=’top’}<a href='[field:typelink /]’>[field:typename/]</a> {/dede:channel} 注:在没有指定typeid的情况下,type标记与模板的环境有关,如,模板生成到栏目一,那么type=’son’就表示栏目一的所有子类http://www.dedecms.com/archives/templethelp/help/taghelp.htm而消极的人则在每个机会都看到某种忧患。

dede的channel标签有关问题

相关文章:

你感兴趣的文章:

标签云: