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
  On 4/28/2015 at 2:11 PM, tiltgabriel said:

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...