Tags:
create new tag
, view all tags

Question

I've been working on a topic templating system and would like to store basic topic templates in one web and call them up from other webs as needed (using a html form to create new topics). The problem I'm running into is that if the template includes a TWikiForm, the TWikiForm from the web where the templates are stored comes with the template. Of course, what I want the TWikiForm from the web where the new topic is created.

One workaround I've thought of is to designate the appropriate TWikiForm in the html form. I thought I had run across an example of this being done but I can't seem to find it now and can't make it work on my own.

Can anyone confirm if this is possible and how it can be done?

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: NA
Server OS: NA
Web server: NA
Perl version: NA
Client OS: NA
Web Browser: NA

-- LynnwoodBrown - 08 Aug 2003

Answer

I finally found the answer myself in TWikiForms#Including_Forms_in_New_Topics. The url parameter that one needs to use is formtemplate. As an example, here's the line I included in my html form for creating new topics:

<input type="hidden" name="formtemplate" value="%WEB%.WebForm" />

This works for what I needed.

-- LynnwoodBrown - 13 Aug 2003

Topic revision: r3 - 2003-08-13 - LynnwoodBrown
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.