Thread:Help talk:Outline format/Tree from recursive (same-category-pointing) property

Tree from recursive (same-category-pointing) property
This extension would be even more powerful if it enabled display of an outlined list based on a page property that points to zero, one or several pages of the same category as the page itself. It should be possible to implement an efficient, two-pass method by using a recursive procedure (pass two for the output) after loading all pages' names and pointer/s to other pages into memory (pass one). It must be possible to limit the number of levels by a parameter to prevent an eternal loop in case some page points to itself, or alternatively detect such a case and stop at this condition.

Use case: Category Persons containing pages with property Parent producing an outline going backwards in time from one person (i.e. genealogy).