How to show WIki Index in sidebar?
Added by Seth Sandler over 13 years ago
I understand that making a Wiki page named 'sidebar' will let you put whatever is inside in the sidebar. However, there doesn't seem to be a marco that prints out the Wiki index. Is there one? Do we really have to manually edit the sidebar page every time we add a page if we want to show an index?
Replies (3)
RE: How to show WIki Index in sidebar? - Added by André Bachmann over 13 years ago
You can simply put {{include(wiki)}} in your Sidebar (if the page named 'wiki' is your starting page). But this doesn't work for the page index.
If you really want your index (for example this: http://www.redmine.org/projects/redmine/wiki/index) on the Sidebar, there is a plugin called Wiki Extensions available, which provides the macro !{{iframe(url, width, height)}}. You can put this is your sidebar like this: !{{iframe(http://www.redmine.org/projects/redmine/wiki/index, 300, 1000)}}.
RE: How to show WIki Index in sidebar? - Added by Seth Sandler over 13 years ago
Thanks André for the suggestions. The
I just found this plugin. https://github.com/peelman/redmine_wiki_navigation It's a bit out dated so the links don't work, but it correctly shows the index on the sidebar. I'll see if I can update it so the links go to the right pages.
RE: How to show WIki Index in sidebar? - Added by bruno costa over 12 years ago
Seth Sandler wrote:
I understand that making a Wiki page named 'sidebar' will let you put whatever is inside in the sidebar. However, there doesn't seem to be a marco that prints out the Wiki index. Is there one? Do we really have to manually edit the sidebar page every time we add a page if we want to show an index?
Hey Seth,
You just need to put in your init.rb the follow line:
menu :admin_menu, :controller, { :controller => 'controllername', :action => 'index' }, :caption => 'Your caption'