Feature #7652

Ability of assign watchers to Wiki pages

Added by Fernando Hartmann about 7 years ago. Updated almost 5 years ago.

Status:NewStart date:2011-02-18
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


Today I can only set myself as a watcher of a page.
Would be very useful to if I can add/remove another users as a watcher, like we can do in Issues today.

Related issues

Related to Redmine - Feature #7697: Extend watchers functionality of wiki and forums to be li... New 2011-02-23


#1 Updated by Etienne Massip about 7 years ago

  • Category set to Wiki

#2 Updated by Zee Prime over 6 years ago

Here's how to do it for wiki pages -- I haven't had the need to do it for forums...

Index: app/views/wiki/show.rhtml
--- app/views/wiki/show.rhtml
+++ app/views/wiki/show.rhtml
@@ -56,6 +56,10 @@

 <% content_for :sidebar do %>
   <%= render :partial => 'sidebar' %>
+  <div id="watchers">
+    <%= render :partial => 'watchers/watchers', :locals => {:watched => @page} %>
+  </div>
 <% end %>

 <% html_title @page.pretty_title %>
Index: lib/redmine.rb
--- lib/redmine.rb
+++ lib/redmine.rb
@@ -117,6 +117,7 @@
     map.permission :edit_wiki_pages, :wiki => [:edit, :update, :preview, :add_attachment]
     map.permission :delete_wiki_pages_attachments, {}
     map.permission :protect_wiki_pages, {:wiki => :protect}, :require => :member
+    map.permission :add_issue_watchers, {:watchers => :new}

   map.project_module :repository do |map|

It uses the existing :add_issue_watchers permission (that's hardcoded elsewhere in the code).

#3 Updated by Jun NAITOH about 5 years ago


#4 Updated by kangbo kimk almost 5 years ago

To Zee Prime,
Thanks for your modified code.
But it only applied to current wiki page.
Can you add option check box such as "ㅁ Apply to all sub wiki pages?"

Also available in: Atom PDF