Tags:
create new tag
view all tags

Question

Is it possible to set the template that will be used to create any topics under a particular topic?

For example, we have a Web called 'Customers'. I would like any topics created under the WebHome parent to have the template CustomerTemplate. But in the specific Customer topics, I want any topics created 'under' it to use the CustomerSiteTemplate.

I would like to be able to create links to sub-topics that have not been created yet, but I want to make sure that anyone who clicks on the '?' for those links will create the topics with the correct template.

Environment

TWiki version: TWikiRelease04x01x01
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat Enterprise Linux 4.4
Web server: Apache 2.0.52
Perl version: 5.8
Client OS: MS Windoes XP
Web Browser: Firefox
Categories:  

-- DuncanKinnear - 21 Mar 2007

Answer

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.

Have you tried ChildTopicTemplatePlugin yet?

-- FranzJosefSilli - 22 Mar 2007

Hmmm. Did not see that Plugin. Thanks for pointing it out.

A quick glance at the Dev page for that Plugin, however, shows some apparently unresolved issues and the Plugin topic only seems to talk about WikiWord links.

I'll give it a try and see if it works for us.

-- DuncanKinnear - 22 Mar 2007

Yes, the ChildTopicTemplatePlugin does what I want.

However, the latest version of this Plugin did not work with version 4.1.1, so I had to 'fix' it before we could use it.

See the ChildTopicTemplatePluginDev topic for details of the 'fix'.

-- DuncanKinnear - 10 Apr 2007

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-04-10 - DuncanKinnear
 
  • 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.