create new tag
, view all tags
I'm using TWikiForms with WebTopicEditTemplate to create a BugTracking Twiki Web. there are a few problems..
  1. Variables do not get expanded in forms (very usefull for select)
  2. the edit textbox still appears (i want ot replace it with only the form edit)
  3. the definition of the form from WebTopicEditTemplate is copied to all the new topics that it is used to create. this produces a cunfusing duplication...
    • when i removed it from the newTopic, it still comes from the WebTopicEditTemplate - which is a good smile

(and others that i will fill in as i remember smile

I will send you guys my changes within the next week - i need to get a BugTracking system together first, and then i will do a diff.

-- SvenDowideit - 19 Sep 2001

Hello Sven,
attentivly I'm reading this artical. I try to do build up a trackingsystem too. So it would be nice if you can give me further informations due to this case. Especially the problem with the variables which do not get expanded in the forms. Have you some reference URL's where such a system is implementated.

Special Thanks

Jörg Ludwig

Let me address each of these issues separately.

  1. Variables not expanding in form
  2. Only want form to display
    • You can create or change the edit.tmpl template (in TWiki/templates) so that the edit textbox is invisible. Alternatively, you could create a skin that is called when you create a new bug.
    • As an aside: IMHO, it's a good idea to keep the free form text for a bug tracking system. This is a good place to keep notes, descriptions, sign off, etc. I assume that your rationale for removing it is to ensure that everything is categorized. You can achieve similar results in free form text and extract them using regular expressions. For example, if you wanted to extract the notes, you could use:
assuming that you used the delimiters NOTES_START and NOTES_END. You'd probably use something a little more user friendly in real life.
  1. Template used for all new topics not desired effect
    • To achieve what you're trying to accomplish, don't use the WebTopicEditTemplate. Instead, create a new topic, say, SvensBugTopicTemplate or whatever your prefer.
    • Attach your form to SvensBugTopicTemplate and set any defaults that you like in that topic. (For example, I'd recommend putting in a date format in the date fields so that everyone is prompted to enter it in the same way)
    • Create an input field and then call SvensBugTopicTemplate from there.

New Bug:

This is the code that generated the box above:

<form action="%SCRIPTURLPATH%/edit%SCRIPTSUFFIX%/%WEB%/">
New Bug: <br />
<input type="text" name="topic" size="32" />
<input type="hidden" name="templatetopic" value="SvensBugTopicTemplate" />
<input type="submit" value="Log new bug" />

Hope that helps.

-- CoreyFruitman - 01 Apr 2002

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2003-01-06 - CoreyFruitman
  • 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.