Tags:
create new tag
view all tags

SID-00040: Find broken links in all topics

Status: Answered Answered TWiki version: pre-4 Perl version: 5.8.8
Category: CategoryMissingFunctionality Server OS: Suse Last update: 17 years ago

Hi, all What I want: I want to check all topics in all webs and find broken links. Most (90%) of the links are internal (point to another topic inside TWiki).

What I've done: I thought that it's better to 1) "grep" all links from all topic_name.txt files and 2) write script to check whether that topic (in the link) exist or not.

I've learned perl just to do this task & but I think still don't have enough knowledge. I see that inside View.pm there are function calls of "checkWebExits" & "topicExists". I want to use these functions, but I don't now how. What should be arguments (is just topic name enough for instance), how should I include "packages"..... So many questions...

Please can you help me to enter this world of TWiki and Perl. Any kind of comments, explanations, documentations are welcomed.

Thanks.

-- AkzholAbdukhaliev - 15 Jan 2009

Discussion and Answer

See OrphansPlugin, WantedTopics, FindReferencedButNotDefinedWikiWords, ListingAllUndefinedButUsedWikiWords, HowToFindOrphanedTopics.

Plugins with API is documented at TWikiPlugins, TWikiFuncDotPm.

-- PeterThoeny - 16 Jan 2009

      Change status to:
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.
SupportForm
Status Answered
Title Find broken links in all topics
SupportCategory CategoryMissingFunctionality
TWiki version pre-4
Server OS Suse
Web server Apache
Perl version 5.8.8
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2009-01-16 - PeterThoeny
 
  • 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.