wiki startpage automatic sort new wiki page

Added by 剑锋 茹 over 2 years ago

Hi
I been use redmine for a while, here is a problem:when I start a new wiki page, I need maintain lest two wiki pages, startpage and my new page.
And I am wandering that may the startpage can be automatic generate a directory?

Replies (1)

RE: wiki startpage automatic sort new wiki page - Added by Bernhard Rohloff over 2 years ago

There's a macro child_pages which ships with Redmine. It lists all pages that have your startpage set as parent page.
This is the description you get with the macro_list macro.

Displays a list of child pages. With no argument, it displays the child pages of the current wiki page. Examples:

{{child_pages}} -- can be used from a wiki page only
{{child_pages(depth=2)}} -- display 2 levels nesting only
{{child_pages(Foo)}} -- lists all children of page Foo
{{child_pages(Foo, parent=1)}} -- same as above with a link to page Foo

(1-1/1)