How to show WIki Index in sidebar?

Added by Seth Sandler about 6 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 about 6 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 about 6 years ago

Thanks André for the suggestions. The

Error executing the include macro (Page not found)
wouldn't really work since you would have to make all pages become subpages of 'wiki' (or whatever name is the start). So, that's also more work. The iFrame isn't ideal either since loading another page just to get to that content is too hacky. It would be great if there was a macro to list the index.

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 5 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'

(1-3/3)