The Include macro includes subpages recursively. An option to set the maximum depth of recursion would be very useful.

What is the problem you are trying to solve?

I use moinmoin for documenting the setup of our systems. Each system has a page with many sub-pages below it. I want a top level page, such as 'Systems' that uses the Include macro to include all the sub pages such as 'Systems/Mail', 'Systems/Web', 'Systems/Print', etc, but that does not include the subpages beneath each of those second level pages. Thus an option to the Include macro, such as maxdepth would be useful. For this example, the Include entry might look like this:

<<Include(^Systems/.*, , maxdepth=1)>>

This will greatly assist in giving the wiki an automatic structure that is controllable and based on the parent-child relationship of pages rather than depending on manually edited links.

Is this features useful to most users or just to specific users?

The ability to specify the depth of recursion is a fundamental control on any recursive function so this is a generalised feature and not just trying to solve one particular use case. An indicator of the value of a maxdepth option is its presence in other macros, such as TableOfContents.

Comments


CategoryFeatureRequest CategoryForMoin2

MoinMoin: FeatureRequests/IncludeMaxDepth (last edited 2010-04-28 16:18:36 by ReimarBauer)