3

I create some documentation in the Trac wiki. I set these pages to all start with the same pattern (like "MyDoc..."). I want to retrieve from Trac all the wiki page links for the pages starting with this pattern.

Is there a way to do so ?

glmxndr
  • 45,516
  • 29
  • 93
  • 118

2 Answers2

10

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

[[TitleIndex(MyDoc)]]
Oliver Giesen
  • 9,129
  • 6
  • 46
  • 82
0

How I did it : GET the wiki/TitleIndex page, look for each <a href="..."/>, analyze the content of href attribute and if matching my pattern, add the link to the list.

glmxndr
  • 45,516
  • 29
  • 93
  • 118
  • Seems like you could do this much easier using the TitleIndex macro. If you did that, you wouldn't need to match the patten, because TitleIndex macro does that for you. I presume you are trying to get the list in html for use outside of Trac? – RjOllos Nov 14 '09 at 08:46
  • @RjOllos : absolutely, the HTML of the TitleIndex page is processed by some other application. – glmxndr Feb 15 '10 at 18:34