前台菜单配置在 网站配置->基础配置 中设置

前台菜单是以Json 格式保存到文件中的


{
    "options": {
        "class": "nav navbar-nav navbar-right" //navbar-right 菜单右浮动
    },
    "activateParents": 1, //子菜单 active 时是否将父级菜单设为 active  1 是 0 否
    "items": [
        {
            "label": "首页", //菜单文字
            "url": [
                "/site/index"  //菜单地址  此内容时是 Url::to() 方法处理前的
            ]
        },
        {
            "label": "产品中心",
            "url": [
                "/products/list"
            ],
            "activeUrls": [
                "/products/index"  //需要将此菜单active 高亮的其他url
            ]
        },
        {
            "label": "新闻",
            "url": [
                "/news/list"
            ],
            "activeUrls": [
                "/news/index"
            ],
            "items": [
                {
                    "label": "企业新闻",
                    "url": {
                        "0": "/news/list",
                        "category-id": "2"
                    }
                },
                {
                    "label": "行业新闻",
                    "url": {
                        "0": "/news/list",
                        "category-id": "3"
                    }
                }
            ]
        },
        {
            "label": "企业相册",
            "url": [
                "/photos/list"
            ],
            "activeUrls": [
                "/photos/index"
            ]
        },
        {
            "label": "下载",
            "url": [
                "/downloads/list"
            ],
            "activeUrls": [
                "/downloads/index"
            ]
        },
        {
            "label": "功能介绍",
            "url": {
                "0": "/site/page",
                "id": "2"
            }
        },
        {
            "label": "淘宝店",
            "url": "https://yiicms.taobao.com"   //外部链接直接填写完整的url
        },
        {
            "label": "关于我们",
            "url": [
                "/site/about"
            ],
            "items": [    //此处是二级菜单
                {
                    "label": "企业简介",
                    "url": {
                        "0": "/site/about"
                    }
                },
                {
                    "label": "企业荣誉",
                    "url": {
                        "0": "/site/page",
                        "id": "4"
                    }
                }
            ]
        },
        {
            "label": "联系我们",
            "url": [
                "/site/contact"
            ]
        }
    ]
}


联系我们

公司: 在北京网络科技

联系人: 李先生

QQ: 739800600 点击这里给我发消息

电话: 13240702278

E-mail: 739800600@qq.com

地址: 北京市丰台区大红门

QQ群:248898849

超值活动: 香港空间+域名+程序(YiiCms)+维护=1000元/年

捐赠我们

支付宝扫码捐赠我们

公益视频