Eyoucms当前三级栏目文章调用标签

2020-04-23

eyoucms当前栏目输出第三级分类及对应文章列表标签,一定要注意下面id里的field2,field3

{eyou:channel type="first"}
    <h2>{$field.typename}</h2>
    <!-- 这是二级分类 -->
    {eyou:notempty name="$field.children"}
    {eyou:channel name="$field.children" id="field2"}
        <h3>{$field2.typename}{$field2.typeid}</h3>
        <!-- 这是三级分类 -->
        {eyou:arclist typeid='$field2.typeid' titlelen='10' id="field3" addfields='content'}
        <!-- 以下是三级分类下的文章 -->
            <a href="{$field3.arcurl}">
            图片:<img src="{$field3.litpic}" alt="{$field3.title}">
            标题:{$field3.title}</a >
        {/eyou:arclist}
    {/eyou:channel}
    {/eyou:notempty}
{/eyou:channel}
Tag: 易优cms