ChiliProject is not maintained anymore. Please be advised that there will be no more updates.
We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.
macro that lists the children of the current page (Feature #628)
Description
In my wiki I use the breadcrumbs a lot, so I have a hierarchy in my wiki. I find it handy to give an overview of subpages from within the wiki for easier navigation.
Example:
I have a page SourceControlBlocks, with some explanation. And each SourcControlBlock has its own page, svn, cvs, git, ...
In each of these pages (cvs, svn, git) I set the parent page (via the rename option) to the Sourcecontrolblocks page.
If I want to give an overview of what source control blocks are supported, I must manually make a list, and keep this up to date.
A big time saver would be a macro that can create links to the children of the current page something like :
this would generate:I'm woking on CCNet so you can have a look at http://www.cruisecontrolnet.org/projects/ccnet/wiki/Source_Control_Blocks for an example
History
Updated by Holger Just at 2011-09-17 09:35 am
There is the !
macro which roughly does what you want. To quote the documentation from the
!Use '{{ variables | to_list: "Variables:" }}' to see all Liquid variables and '{{ tags | to_list: "Tags:" }}' to see all of the Liquid tags.
:
child_pages: Displays a list of child pages. With no argument, it displays the child pages of the current wiki page.
Examples:
!-- can be used from a wiki page only !
- 263 Layout
- 4 Starting a new thread
- 692 Layout
- Bugmash
- Bundler
- Chiliproject
- Code of Conduct
- Commercial Offerings
- Continuous Integration
- Copyright
- Deprecations
- Development
- Differences Between Chiliproject and Redmine
- DocumentationWishlist
- Donate
- Download
- Draft
- Edavis10
- Extra CSS
- FAQ
- Gitolite Integration
- Help
- Homepage
- HowTos
- Ideas
- Installation
- Configuration File
- Installation Automation
- Installation on FreeBSD
- Installation on Linux
- Installation on CentOS 5
- Installation on Debian Lenny v1
- Installation on Debian Squeeze v1
- Installation on Debian Squeeze v2
- Installation on openSUSE 11
- Installation on OpenSUSE 11 3
- Installation on OpenSUSE 12 1
- Installation on Ubuntu 10 10 v1
- Installation on Ubuntu 10 10 v2
- Installation on Ubuntu 11 04 v1
- Installation on Windows
- Requirements
- Upgrade
- Installation on Ubuntu 11 04 v2
- Installation on Ubuntu 12 04 v3
- Integration
- IRC
- Khalsa
- LDAP
- Liquid
- Migrate From Redmine
- Migrate From Redmine 1 1 2
- Migrate From Redmine 1 1 3
- Migrate From Redmine 1 2 0
- Mobile
- New Committer Setup
- Objectives and Goals
- Plugin Compatibility
- Plugin Example
- Plugin Install
- Plugin Uninstall
- Publications
- Public Launch List
- RBot Marforio
- Release 2 7 3
- Release 2 7 4
- Release 3 3 0
- Release 3 4 0
- Repository Administration
- Restart ChiliProject
- REST API
- Roles and permissions
- Sidebar
- Strategy
- Teams
- Team Meetings
- Theme List
- UpgradeDebian6
- User Documentation
- Using ChiliProject
- Using forums
- Who is using ChiliProject
- Why companies contribute
- Why Fork
Liquid error: No such page 'Foo'-- lists all children of page Foo !Liquid error: No such page 'Foo'-- same as above with a link to page Foo
Does this solve your issue?
- Status changed from Open to Needs more information
Updated by Ruben Willems at 2011-09-17 12:03 pm
perfectly
works like a charm
and thanks for the tip about the macro_list command !
- Status changed from Needs more information to Closed