多种标签调用方法实现网站顶级栏目、下级栏目以及子栏目内文章的调用。
方法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}
综合上面顶级栏目和子栏目的调用方法
| 查看源码 {eyou:channelartlist typeid=''} 
 --调用顶级栏目名称-- 
 {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} | 
郑重声明:
本站所有内容均由互联网收集整理、网友上传,并且以计算机技术研究交流为目的,仅供大家参考、学习,不存在任何商业目的与商业用途。
若您需要商业运营或用于其他商业活动,请您购买正版授权并合法使用。
我们不承担任何技术及版权问题,且不对任何资源负法律责任。
如无法下载,联系站长索要。
	如有侵犯您的版权,请给我们来信:cainiaovip8@qq.com,我们尽快处理。