Project

General

Profile

Actions

Defect #931

closed

Plugin tabs don't get marked as "selected" when active.

Added by Jeremy Jackson about 16 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-03-26
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

I've not been able to find a plugin that adds a tab that has that tab "selected" when that plugin is active.

As found in other plugins:

menu :project_menu, "Todos", :controller => 'todo_lists', :action => 'index'

puts "Todos" into the menu but is not marked as the active section when navigated to.

But what's really wanted by Redmine:

menu :project_menu, :todo_lists, :controller => 'todo_lists', :action => 'index'

puts "Todo lists" into the menu.

This doesn't pose a problem and isn't really a bug, but I was unable to locate a way to pass in a string that may differ from the controller name.

Actions #1

Updated by Jim Mulholland about 16 years ago

Good catch, Jeremy!

I updated my redmine_google_calendar plugin with this update. Worked like a champ!

I would probably throw a post on the forums about this also.

Thanks!

Jim

Actions #2

Updated by Jean-Philippe Lang almost 16 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

By default, the menu name is the controller name (eg. :todo_lists) but you can override it in the controller with:

menu_item :whatever

or for a particular action only:

menu_item :specific_item, :only => :some_action

Example here: source:trunk/app/controllers/issues_controller.rb@1356#L20

Actions

Also available in: Atom PDF