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 someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-11-28 - CrawfordCurrie
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.