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)" |
* %TOPICREFERENCELIST{"orphans"}% * %TOPICREFERENCELIST%
* %TOPICREFERENCELIST{"orphans" web="MyWeb"}%
* %TOPICREFERENCELIST{"hasref"}%
* %TOPICREFERENCELIST{"all"}% * %TOPICREFERENCELIST{"allrefs"}%
* %TOPICREFERENCELIST{type="hasref" header="| *Topic* | *Reference Count* |" format="| [[$topic]] | $count |"}%
Plugin output (pre-rendered):
|
Plugin output (if enabled):
|
Used syntax:
%TOPICREFERENCELIST{"orphans" web="Main"}% |
data/debug.txt
) 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 |
Plugin Author: | TWiki:Main.JeffCrawford |
Copyright: | © 2006, TWiki:Main.JeffCrawford |
License: | GPL (GNU General Public License) |
Plugin Version: | 12 Oct 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 |