Page 1 of 1

Plugin Layout Hook for Btn-Group

Posted: 18 Jun 2019, 08:41
by econsor_ag
Hello,

I want to extend the btn-group from the layout_navbar_button_bar function inside the layout_api.php.
How would I go about that, I dont really want to add some jQuery to append new buttons, is that the only way?

Re: Plugin Layout Hook for Btn-Group

Posted: 18 Jun 2019, 20:47
by atrol
There is no event triggered in this function and there is no option similar to $g_main_menu_custom_options used in this function.
So there is no other way at the moment than to change the function or to use JavaScript.

Re: Plugin Layout Hook for Btn-Group

Posted: 21 Jun 2019, 06:33
by econsor_ag
econsor_ag wrote: 18 Jun 2019, 08:41 Hello,

I want to extend the btn-group from the layout_navbar_button_bar function inside the layout_api.php.
How would I go about that, I dont really want to add some jQuery to append new buttons, is that the only way?
I used JavaScript / Jquery now but I hate how when the page is first loaded you can see two buttons before the rest is loaded :(

I would still appreciate any kind of advice / help.

Re: Plugin Layout Hook for Btn-Group

Posted: 21 Jun 2019, 07:30
by atrol
These are your options
  • Change function layout_navbar_button_bar