Jump to content

Como Adicionar Um Submenu


tiltgabriel

Recommended Posts

Hello, I'm developing a plugin and would like to see a model of how to add a sub menu

this is my home menu

public function getActions(){

   return array(
               array(
                 'action' => "nav_primary_staff",   
                 'uri'      => "plugin/pagamento/aplicacao_cliente/",
                 'name' => "Pagamento"
               )
             );
}

 

--------------------------------------------------------------------------------------------------------------------

 

Ola, estou desenvolvendo um plugin e gostaria de ver um modelo de como adicionar um sub menu

este é meu menu inicial

public function getActions(){
   return array(
               array(
                 'action' => "nav_primary_staff",   
                 'uri'      => "plugin/pagamento/aplicacao_cliente/",
                 'name' => "Pagamento"
               )
             );
}

Link to comment
Share on other sites

Hello, I'm developing a plugin and would like to see a model of how to add a sub menu

this is my home menu

public function getActions(){

   return array(

               array(

                 'action' => "nav_primary_staff",   

                 'uri'      => "plugin/pagamento/aplicacao_cliente/",

                 'name' => "Pagamento"

               )

             );

}

 

Something like this:

public function getActions(){

   return array(
               array(
                 'action' => "nav_primary_staff",   
                 'uri'      => "plugin/pagamento/aplicacao_cliente/",
                 'name' => "Pagamento",

                 'options' => array(
                     'sub' => array(
                         array(
                             'uri' => "plugin/pagamento/aplicacao_cliente/subnav1/",
                             'name' => "Sub Nav 1"
                         ),
                         array(
                             'uri' => "plugin/pagamento/aplicacao_cliente/subnav2/",
                             'name' => "Sub Nav 2"
                         ),
                     )
                 )

               )
             );
}
Link to comment
Share on other sites

Both sub nav items should appear. You may need to reinstall the plugin from the admin interface to get the links to be added again.

 

Plugins set links when the plugin is installed or upgraded. If you change the links in the plugin without then installing or upgrading the plugin, they won't appear.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...