当前位置: 首页 > 工具软件 > EyouCms > 使用案例 >

eyoucms菜单

牟稳
2023-12-01
<ul class="nav nav-menu nav-inline" >
                 <li{eyou:eq name='$Request.param.m' value='Index'} class="active"{/eyou:eq}><a href="{eyou:global name='web_cmsurl' /}" title="首页">首页</a></li>
                {eyou:channel type="top" id="field" currentstyle="active"}
                <li class="{$field.currentstyle}">
                    <a href="{$field.typeurl}" class="first-level">
                    {$field.typename}
                    {eyou:notempty name="$field.children"}<i class="fa fa-angle-down margin-small-left"></i>{/eyou:notempty}</a>
                    {eyou:notempty name="$field.children"}
                    <ul class="drop-menu">{eyou:channel name="$field.children" id="field2"}
                        <li><a href="{$field2.typeurl}">{$field2.typename}</a></li>{/eyou:channel}
                    </ul>
                    {/eyou:notempty}
                    </a>
                </li>
                {/eyou:channel}
              </ul>

 类似资料: