New meny button

Hi

I've create a new page in foreman that holds a custom report and i"m trying
to add to the top menu a button for that page.
The problem is when i add a new menu item in app/services/menu/item.rb it
doesn't show.
I tried to clone an existing menu item but it also doesn't work.
Can anybody please help me ?

Thanks

Hi Lior,

Have you tried restarting foreman after making the changes?
The menu loader runs once when foreman is started.

Foreman has a very powerful plugin architecture, I would suggest looking
into making your changes into a plugin [1] for easier maintenance.

[1]
http://projects.theforeman.org/projects/foreman/wiki/How_to_Create_a_Plugin

··· On Wed, Sep 16, 2015 at 11:09 AM, Lior Kuperiu wrote:

Hi

I’ve create a new page in foreman that holds a custom report and i"m
trying to add to the top menu a button for that page.
The problem is when i add a new menu item in app/services/menu/item.rb it
doesn’t show.
I tried to clone an existing menu item but it also doesn’t work.
Can anybody please help me ?

Thanks


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Have a nice day,
Tomer Brisker
Red Hat Engineering

The menus are also cached in production. Run foreman-rake tmp:cache:clear to clear it all.

··· On 16/09/15 09:44, Tomer Brisker wrote: > Have you tried restarting foreman after making the changes? > The menu loader runs once when foreman is started.


Dominic Cleal
dominic@cleal.org