SID-00040: Find broken links in all topics
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
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.