多种标签调用方法实现网站顶级栏目、下级栏目以及子栏目内文章的调用。 一、顶级栏目调用方法1: {eyou:channel type='top' typeid='' currentstyle='active'} {$field.typename} {/eyou:channel}
方法2: {eyou:channelartlist typeid='' type='top' } {eyou:field name='typename' /} {/eyou:channelartlist}
方法3:此方法必须指定栏目id进行调用 {eyou:type typeid='1' empty='暂时没有数据'} {$field.typename} {/eyou:type}
二、下(子)级栏目调用方法1: {eyou:channelartlist typeid=''} {eyou:channel type='son' currentstyle='active'} {$field.typename} {/eyou:channel} {/eyou:channelartlist}
方法2: 此方法必须指定栏目id进行调用,调用多个栏目时id用“,”号隔开 {eyou:channel type='son' typeid='1,2,3,4': currentstyle='active'} {$field.typename} {/eyou:channel}
三、调用子栏目文章综合上面顶级栏目和子栏目的调用方法
|