Ad Widget

Collapse

Menu. Add new 1st level item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Belfigor
    Member
    • Jul 2016
    • 69

    #1

    Menu. Add new 1st level item

    Hi, i whant to add new 1st lvl item in menu.inc.php file.
    I added such code:
    PHP Code:
            'helpdesk' => [ 
                
    'label' => _('Helpdesk'),
                
    'user_type' => USER_TYPE_ZABBIX_USER
                
    'default_page_id' => 0,
                
    'pages' => [ 
                    [
                        
    'url' => '2.php'
                        
    'label' => _('test2'
                    ],
                    [
                        
    'url' => '1.php',
                        
    'label' => _('test1')
                    ]
                ]
            ], 
    Now i have new item in menu and subitems in it.
    But when i selecting that item, pressing on place 1 or any other place on new item it draws perfectly. But when after that i press on any other item, for example item 2, item 1 and its subitems does not dissapear, and i have gradient in place 3, selected on the image . Please help, where i do wrong?
    Attached Files
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    Edit main.js:
    Real-time monitoring of IT components and services, such as networks, servers, VMs, applications and the cloud. - zabbix/zabbix


    Code:
    menus:	{'view': 0, 'cm': 0, 'reports': 0, 'config': 0, 'admin': 0, 'helpdesk': 0},
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    Working...