ShaughanLavine - 09 Mar 2010 - 19:26 - 1.26 " class="twikiLink">TWiki> TWiki Web>ChildTopicTemplatePlugin (05 Oct 2009, TWikiAdminGroup)EditAttach

ChildTopicTemplatePlugin

This plugin allows you to specify in a topic what template should be used when a child topic is created via Twiki's create topic link. A number of different templates can be specified thoughout a topic to allow different child topics to be created in different sections of the parent.

Syntax Rules

  • Write the command %CHILDTOPICTEMPLATE{ NameOfTopicTemplate }% anywhere in your text.
  • The template name must be a WikiWord.
  • All subsequent unlinked WikiWords will be created using the specified topic template.
  • Use %CHILDTOPICTEMPLATE{}% to remove the child topic template.
  • A topic can contain any number of CHILDTOPICTEMPLATE commands.

Examples

  • %CHILDTOPICTEMPLATE{ NewTopicTemplate }%

Plugin Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, i.e. %INTERWIKIPLUGIN_SHORTDESCRIPTION%

  • One line description, is shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Allows templates to be specified for automatic child topic creation.

  • 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 server where TWiki is running.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip ChildTopicTemplatePlugin.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/ChildTopicTemplatePlugin.txt Plugin topic
    lib/TWiki/Plugins/ChildTopicTemplatePlugin.pm Plugin Perl module
  • (Dakar) Visit configure in your TWiki installation, and enable the plugin in the {Plugins} section.
  • Test if the installation was successful:

Plugin Info

Plugin Author: TWiki:Main/DeanCording
Plugin Version: 01 Jun 2004 (V1.000)
Change History:  
01 Jun 2004: Initial version
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
TWiki:Plugins/Benchmark: GoodStyle nn%, FormattedSearch nn%, ChildTopicTemplatePlugin nn%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/ChildTopicTemplatePlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/ChildTopicTemplatePluginDev

Related Topics: TWikiPreferences, TWikiPlugins

-- TWiki:Main/DeanCording - 01 Jun 2004

Topic revision: r7 - 05 Oct 2009 - 06:50:12 - TWikiAdminGroup
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.ChildTopicTemplatePlugin