tiltgabriel Posted April 28, 2015 Report Posted April 28, 2015 Hello, I'm developing a plugin and would like to see a model of how to add a sub menuthis is my home menupublic 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 menueste é meu menu inicialpublic function getActions(){ return array( array( 'action' => "nav_primary_staff", 'uri' => "plugin/pagamento/aplicacao_cliente/", 'name' => "Pagamento" ) );} Quote
Tyson Posted April 28, 2015 Report Posted April 28, 2015 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" ), ) ) ) ); } PauloV 1 Quote
tiltgabriel Posted April 28, 2015 Author Report Posted April 28, 2015 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 ? Quote
Tyson Posted April 28, 2015 Report Posted April 28, 2015 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() Quote
tiltgabriel Posted April 29, 2015 Author Report Posted April 29, 2015 I used the model you gave me and appeared only "Sub Nav 2". I want to appear as the two submenu. example: PagamentoSub Nav 1 / Sub Nav 2 what may have gone wrong? Quote
Tyson Posted April 30, 2015 Report Posted April 30, 2015 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.