Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: linux
Web server: apache
Perl version: 5.8.6
Client OS: linux
Web Browser:  
Categories: Search, Statistics, Contributing code, Plugins, Add-Ons

-- SteveTell - 30 Oct 2006

Answer

ALERT! 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

 
Change status to:
Topic revision: r2 - 2006-11-28 - CrawfordCurrie
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.