Project

General

Profile

Actions

Feature #2649

closed

Need @controller context in plugin hook(view_layouts_base_html_head and view_layouts_base_body_bottom)

Added by Chaoqun Zou almost 16 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin API
Target version:
Start date:
2009-02-02
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

Since there is some need to add plugin's css style into redmine's page, I think it is a good place to add it in the plugin hook of view_layouts_base_html_head.

But I need to know the controller name and action name before doing this, because only a few pages need plugin's css code.

Example:
Add plugin's activity into redmine's activity page need an additional css code.

It's simple to implement, just modify two lines in base.rhtml:

ln17: <%= call_hook :view_layouts_base_html_head, :controller => Nathaniel Knutson >
ln64: <
= call_hook :view_layouts_base_body_bottom, :controller => Nathaniel Knutson %>


Related issues

Has duplicate Redmine - Feature #2542: Plugin hooks should have access to the "request" variableClosedEric Davis2009-01-19

Actions
Actions

Also available in: Atom PDF