Metismenu默认打开某些网页中的所有标签?

时间:2018-09-02 06:29:27

标签: javascript php html cakephp

我正在使用Metismenu使用cakephp构建基于Web的系统,但是在某些页面中,Metismenu默认情况下会打开所有标签。但是在其他页面中,它仅打开该页面所需的标签。用于为每个页面创建Metimenu的代码是相同的,如何解决此问题,以便所有页面都可以打开该页面所需的标签?

<div class="navbar-default sidebar" role="navigation">
    <div class="sidebar-nav navbar-collapse">

        <ul class="nav" id="side-menu">
            <li>
                <a href="#" class="active"><i class="fa fa-user fa-fw"></i> Client</a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="/team09/clients">Client list</a>
                    </li>
                    <li>
                        <a href="/team09/clients/add">Add Client </a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="#" class="active"><i class="fa fa-inbox fa-fw"></i> Product</a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="/team09/products">Product list</a>
                    </li>
                    <li>
                        <a href="/team09/products/add">Add Product </a>
                    </li>
                    <li>
                        <a href="/team09/searches">Search Product </a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="#" class="active"><i class="fa fa-bars fa-fw"></i> Order</a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="/team09/orders">Order list</a>
                    </li>
                    <li>
                        <a href="/team09/orders/add">Add Orders </a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="#" class="active"><i class="fa fa-usd fa-fw"></i> Billing</a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="/team09/orders/billing">Billing List</a>
                    </li>
                </ul>
            </li>
        </ul>

    </div>
</div>

0 个答案:

没有答案