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