Skip to content

Is it possible to hide menus and submenus based on a select? #2571

@safiro

Description

@safiro

I've over 10 menus with too much fields and it takes too much time to load.
So, I created array in global options menu:

             'title'=>'Choose your theme',
    'id'=>'picklayout',
    'type'=>'select',

    'options'=>array(
    'layoutone'=>'Layout One',
    'layouttwo'=>'Layout Two',
            'layoutthree'=>'Layout Three',
    'layoutfour'=>'Layout Four',
    'layoutfive'=>'Layout Five',
            'layoutsix'=>'Layout Six',
    ),
    'default'=>'layoutthree',
    ),

Now, I'd like when theme activated, all menus not displayed but only layout three menu, if I select Layout Two and refresh , only layout two options menu displayed. and so on ......

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions