Project

General

Profile

Changing Redmin header

Added by Luan Nguyen over 14 years ago

Hi All,

I would like to change the header.

Currently, we have

Home My Page Projects Help

I looked into

/opt/redmine-1.0.0/app/views/layout/base.rhtlm
but I can't figure out how to modify the view_layouts_base_html_head

<%= call_hook :view_layouts_base_html_head %>

Where is the view_layouts_base_html_head function?

Thanks,
Luan


Replies (2)

RE: Changing Redmin header - Added by Holger Just over 14 years ago

This is the call to a hook. There is no explicit view_layouts_base_html method. Plugins can register themselves to that via a callback to add generated HTML code to the site. Please see the wiki page describing it for more info.

If you want to add / change the menu items in the top_menu, you can either edit lib/redmine.rb (around line 140) or write a plugin which modifies the menu. There is no need to use any of the hooks for that.

--Holger

RE: Changing Redmin header - Added by Luan Nguyen over 14 years ago

Holger,

That what exactly what I was looking for.

Thanks for your help,

Luan

    (1-2/2)