List of wiki pages

I am creating some documentation on the Trac wiki. I set these pages for everyone starting with the same template (for example, "MyDoc ..."). I want to extract from Trac all the wiki page links for pages starting with this template.

Is there any way to do this?

+3
source share
2 answers

Just use the macro [[TitleIndex]]. See the documentation . In your example, this should be:

[[TitleIndex(MyDoc)]]
+9
source

How I did it: Get the wiki / TitleIndex page, find each <a href="..."/>, analyze the contents of the href attribute and, if you match my template, add the link to the list.

0
source

Source: https://habr.com/ru/post/1711251/


All Articles