Jump to content

Recommended Posts

Posted

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"
               )
             );
}

Posted

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"
                         ),
                     )
                 )

               )
             );
}
Posted

Thank you for the response, I am very grateful for answers.
Here are appeared the sub nav 2, which can be?

Muito obrigado pelas resposta, fico muito grato pelas respostas.
Aqui so apareceu o sub nav 2, o que pode ser ?

Posted

I'm not sure what you're asking.

 

My example included 2 sub nav links that link to the methods "subnav1()" and "subnav2()" that you have created in your controller: AplicacaoCliente::subnav1() and AplicacaoCliente::subnav2()

Posted

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.

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...