What about http://projects.theforeman.org/projects/foreman/wiki/How_to_Create_a_Plugin#Altering-the-menu ? It discusses menu alteration quite extensively. Also many plugins are altering the menu, Katello for example. Although Katello is pretty complicated for a first glance. We have an example even in our plugin template: https://github.com/theforeman/foreman_plugin_template/blob/master/lib/foreman_plugin_template/engine.rb#L32
On Thursday, December 22, 2016 at 10:06:42 AM UTC+2, Marek Hulán wrote: > > On středa 21. prosince 2016 13:37:12 CET Daniel Kuffner wrote: > > Hi All, > > > > Do we have somewhere an example of how to extend the hostgroups action > menu > > item via foreman plugin? Is that possible? > > > > thank you, > > Daniel > > Hello, > > I can't find any example for extending menu actions, but it should be > possible > using deface. See notes in [1] our wiki. It should not differ too much > from > other overrides that can be found in plugins like remote execution [2] or > openscap [3]. > > [1] http://projects.theforeman.org/projects/foreman/wiki/ > How_to_Create_a_Plugin#Modify-Existing-Foreman-View-using-Deface > <http://projects.theforeman.org/projects/foreman/wiki/How_to_Create_a_Plugin#Modify-Existing-Foreman-View-using-Deface> > > [2] > https://github.com/theforeman/foreman_remote_execution/tree/master/app/ > overrides > [3] > https://github.com/theforeman/foreman_openscap/tree/master/app/overrides > > Hope this helps > > -- > Marek > > > -- You received this message because you are subscribed to the Google Groups "foreman-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to foreman-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.