Quantcast
Channel: Redmine: Bernhard Rohloff
Viewing all articles
Browse latest Browse all 132

Redmine - Open discussion: RE: How to change Main Menu

$
0
0

It's basically the same as what Mischa suggested earlier in the thread but instead of removing an entry you have to add one.

Mischa The Evil wrote in RE: How to change Main Menu:

FWIW: I recommend against patching Redmine core files or using JavaScript hacks with additional plugin dependencies for something as small as this.
I suggest you just utilize the designated plugin API for this. A simple plugin would consist of something along the lines of an 'init.rb' file that looks like:
[...]

Now place that file into a new directory named 'remove_top_menu_help' in your Redmine's 'plugins' directory and restart your Redmine environment. Et voila...

Here is an example...

Redmine::Plugin.register:jendadoname'Jendas cool plugin'author'Jenda Benda'description'Adds a link to https://new-link-aaa.com to the top menu.'version'0.0.1'url'https://www.redmine.org/boards/1/topics/59964'author_url'https://www.redmine.org/users/137847'# Add the link with the text Jenda to the top menumenu:top_menu,"Jenda","https://new-link-aaa.com"end

Its registered under the name :jenda so you have to place it in an init.rb file under the subfolder jenda in your redmines plugins directory. After restarting the instance your link shows up.


Viewing all articles
Browse latest Browse all 132

Trending Articles