Question
Is there a TWiki:: API to retrieve a list of all of the intra-twiki links from a given page or web?
I am interested in in writing tools to do statistical and structural analysis of the link structure of a medium-size (and growing) twiki.
Short of copying and hacking much of Render, how would I go about writing a function that takes a webname.topicname (or its text retrieved with TWiki::Store::readTopic) and returns say a list of webname.topicname strings to which that page has links?
any hints appreciated.
Environment
--
SteveTell - 30 Oct 2006
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
There are some regular expressions declared in TWiki.pm that help in tracking down external links from a block of text. Suggest you look at the code that does topic renames (follow the logic through TWiki/UI/Manage.pm).
--
CrawfordCurrie - 28 Nov 2006