You are here: TWiki> Plugins Web>TopicReferencePlugin (2008-12-12, SopanShewale)
Tags:
admin_tool1Add my vote for this tag linking1Add my vote for this tag navigation1Add my vote for this tag visualization1Add my vote for this tag create new tag
, view all tags

TopicReferencePlugin

This plugin is used to help find orphaned topics. It can also be used to count the number of references to a particular topic.

Syntax Rules

You type You Get
%TOPICREFERENCELIST% List of orphan topics
%TOPICREFERENCELIST{<attributes>}% see attribute table below

Attribute Description Default
type="listtype" or "listtype" listtype: orphans - all topics with ref count of 0
hasref - all topics with references
all or allrefs - all topics and ref counts
orphans
web="Webname" Web to process Current Web
header="..." Text at top of list none
format="..." Format of output. $topic can be used for the topic name. $count for reference count Bullet list e.g.
"   * [[$topic]] ($count)"

Syntax Examples

  • List orphaned topics
      %TOPICREFERENCELIST{"orphans"}%
      %TOPICREFERENCELIST%
  • List orphaned topics in a different web
      %TOPICREFERENCELIST{"orphans" web="MyWeb"}%

  • List topics with references (non-zero)
      %TOPICREFERENCELIST{"hasref"}%

  • List all topics and reference counts
      %TOPICREFERENCELIST{"all"}%
      %TOPICREFERENCELIST{"allrefs"}%

  • List topics with references using format
      %TOPICREFERENCELIST{type="hasref" header="| *Topic* | *Reference Count* |" format="| [[$topic]] | $count |"}%

Rendered Example, Orphans in the Main web

Plugin output (pre-rendered):

Plugin output (if enabled):

%TOPICREFERENCELIST{"orphans" web="Main"}%

Used syntax:
%TOPICREFERENCELIST{"orphans" web="Main"}% 

Plugin Settings

  • One line description, is shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Find orphaned topics or topic ref counts.

  • Debug plugin: (See output in data/debug.txt)
    • Set DEBUG = 0

Plugin Installation Instructions

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the TWiki server.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip TopicReferencePlugin.zip in your twiki installation directory. Content:
File: Description:
data/TWiki/TopicReferencePlugin.txt Plugin topic
data/TWiki/TopicReferencePlugin.txt,v Plugin topic repository
lib/TWiki/Plugins/TopicReferencePlugin.pm Plugin Perl module
  • Configure the Plugin:
    • TWiki 4.0 and up: Run the configure script to enable the Plugin
    • Change the Plugin settings as needed
  • Test if the installation was successful (verify rendered example above)

Plugin Info

Plugin Author: TWiki:Main.JeffCrawford
Copyright: © 2006, TWiki:Main.JeffCrawford
License: GPL (GNU General Public License)
Plugin Version: 19 Apr 2006 (V1.002)
Change History:  
12 Oct 2006: Enhancments: Added type, header and format attributes;
Bugs: fixed issue with whitespace preceeding tag (default bullet item wasn't being rendered properly)
19 Apr 2006: Changed name of plugin (formerly OrphanFindPlugin), modified for better speed and added default, added web option
15 Apr 2006: Initial version
TWiki Dependency: $TWiki::Plugins::VERSION 1.1
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
Benchmarks: GoodStyle 99%, FormattedSearch 99%, TopicReferencePlugin 58%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/TopicReferencePlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/TopicReferencePluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/TopicReferencePluginAppraisal

Related Topics: TWikiPlugins, DeveloperDocumentationCategory, AdminDocumentationCategory, TWikiPreferences

-- TWiki:Main.JeffCrawford - 19 Apr 2006

Topic attachments
I Attachment Action Size Date Who Comment
zipzip OrphanFindPlugin.zip manage 4.0 K 2006-04-17 - 17:36 UnknownUser  
elsemd5 TopicReferencePlugin.md5 manage 0.2 K 2008-12-12 - 12:45 SopanShewale checksum file , Uploaded as a part of Release Process
ziptgz TopicReferencePlugin.tgz manage 4.9 K 2008-12-12 - 12:44 SopanShewale See TopicReferencePlugin for details. Untar and run the installer script, Uploaded as a part of Release Process
zipzip TopicReferencePlugin.zip manage 6.4 K 2008-12-12 - 12:44 SopanShewale See TopicReferencePlugin for details. Unzip and run the installer script , Uploaded as a part of Release Process
elseEXT TopicReferencePlugin_installer manage 3.4 K 2008-12-12 - 12:45 SopanShewale Installer Script, Uploaded as a part of Release Process
Topic revision: r13 - 2008-12-12 - 12:45:12 - SopanShewale
Plugins.TopicReferencePlugin moved from Plugins.OrphanFindPlugin on 2006-04-19 - 21:12 by PeterThoeny - put it back
 
TWIKI.NET
This site is powered by the TWiki collaboration platform
Ideas, requests, problems regarding TWiki? Send feedback
Copyright © 1999-2009 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.