Project

General

Profile

Actions

Defect #2841

closed

View overriding code isn't working for plugins

Defect #2841: View overriding code isn't working for plugins

Added by Chris Peterson over 17 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin API
Target version:
-
Resolution:
Fixed
Affected version:

Description

I have created an empty plugin. I have added the file index.rhtml with some changes to my_plugin/app/views/projects/index.rhtml. The plugin shows up on the Admin -> Plugins page. However I do not see the changes when I goto Projects. I migrated the plugin database and restarted redmine to no avail. Is there an extra step that I am missing?

output of svn info:

Path: .
URL: http://redmine.rubyforge.org/svn/trunk
Repository Root: http://redmine.rubyforge.org/svn
Repository UUID: e93f8b46-1217-0410-a6f0-8f06a7374b81
Revision: 2521
Node Kind: directory
Schedule: normal
Last Changed Author: jplang
Last Changed Rev: 2520
Last Changed Date: 2009-02-23 12:35:16 -0500 (Mon, 23 Feb 2009)

Forum Discussion: http://www.redmine.org/boards/3/topics/show/4283

Plugin is attached. If the plugin works properly, the projects page will change to have the description next to the projects in a table instead of below the projects. Also the ability to access all issues and activities has been removed.


Files

redmine_projects_view_override.zip (4.24 KB) redmine_projects_view_override.zip Zipped plugin directory Chris Peterson, 2009-02-25 22:21

Updated by Eric Davis over 17 years ago Actions #1

  • Status changed from New to 7
  • Assignee set to Eric Davis

I'll take a look at this one. Doesn't look like my custom design is being applied either. Guessing the view override changes to Engines didn't get merged in with Rails 2.2.x

Updated by Jean-Philippe Lang over 17 years ago Actions #2

  • Status changed from 7 to Closed
  • Resolution set to Fixed

Fixed in r2525.

Updated by Jérémie Delaitre over 16 years ago Actions #3

  • Status changed from Closed to Reopened

I have tried the plugin on Redmine 0.9.2 (debian package) without success.
Is there any rake command to call to allow view overriding or is view overriding working differently in 0.9 ?

Updated by Eric Davis over 16 years ago Actions #4

  • Status changed from Reopened to Closed

View overriding is working in 0.9. The Debian package uses a patched Redmine using a different version of Rails and the Rails Engine which might have broken this.

Actions

Also available in: PDF Atom