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. 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

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2003-08-13 - LynnwoodBrown
 
  • 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.