channelartlist 获取当前频道的下级栏目的内容列表

[基础用法]

名称:channelartlist

功能:获取当前频道的下级栏目的内容列表标签

语法:

{eyou:channelartlist typeid=’栏目ID’ type=’son’ row=’20’}

{eyou:field name=’typename’ /}

{eyou:arclist limit=’0,10′ titlelen=’30’}

{$field.title}

{/eyou:arclist}

{/eyou:channelartlist}

参数:

typeid=” 栏目ID,多个请用”,”分开

row=’100′ 调用栏目数

titlelen=’30’ 栏目名称长度

type=’son’ 表示下级栏目

type=’self’ 表示同级栏目
type=’top’ 表示顶级栏目
type=’sonself’ 表示当前下级栏目以及同级栏目
mod=” 每隔N行输出的内容

empty=” 没有数据时显示的文案

底层字段:

请查阅易优Cms官方提供的数据字典,找到表名 ey_arctype

——————————-效果展示——————————–
1,调用指定栏目ID,(栏目名称链接,子栏目名称链接,栏目内文章)
模板调用代码

{eyou:channelartlist typeid=’2′}

{eyou:field name=’typename’ /}

{eyou:channel row=”6″ type =’son’}

{$field.typename}

{/eyou:channel}

查看更多分类

{eyou:arclist row=’6′ titlelen=’30’}

{$field.title}

{/eyou:arclist}

{/eyou:channelartlist}

网站前端显示效果(css样式请自行填充)

【更多示例】

——————————-示例1——————————–

描述:输出顶级栏目列表

{eyou:channelartlist type=’top’ row=’10’}

{eyou:field name=’typename’ /}

{/eyou:channelartlist}

——————————-示例2——————————–

描述:输出指定栏目下的内容列表(channelartlist标签里嵌套arclist标签)

{eyou:channelartlist typeid=’10,11,12′ row=”10″}

{eyou:arclist row=’10’ titlelen=’30’ infolen=’160′}

{$field.title}

{/eyou:arclist}

{/eyou:channelartlist}

——————————-示例3——————————–

描述:输出指定栏目下的下级栏目的内容列表(channelartlist标签里嵌套arclist标签)

{eyou:channelartlist typeid=’栏目ID’ type=’son’ row=”10″}

{eyou:arclist row=’10’ titlelen=’30’ infolen=’160′}

{$field.title}

{/eyou:arclist}

{/eyou:channelartlist}

——————————-示例4——————————–

描述:输出指定栏目下的下级栏目列表(channelartlist标签里嵌套channel标签)

{eyou:channelartlist typeid=’栏目ID’ type=’son’ row=’10’}

{eyou:channel type=’son’ row=’10’ currentstyle=’active’}

{$field.typename}

{/eyou:channel}

{/eyou:channelartlist}

——————————-示例5——————————–

描述:输出指定栏目下的下级栏目列表(channelartlist标签里嵌套type标签)

{eyou:channelartlist typeid=’栏目ID’ type=’son’ row=’10’}

{eyou:type type=’self’}

{$field.typename}

{/eyou:type}

{/eyou:channelartlist}