Re: Tracker customization help
Ralf Schlatterbeck <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Sep 01, 2016 at 10:18:38AM -0700, Richard Feltstykket wrote: > However, I am unclear on how to now put a new comment in this structure, > I was looking at Change Note: > > <tr tal:condition="context/is_edit_ok"> > <th i18n:translate="">Change Note</th> > <td colspan=3> > <textarea tal:content="request/form/@note/value | default" > name="@note" wrap="hard" rows="5" cols="80"></textarea> > </td> > </tr> [...] > Which doesn't seem to touch msg at all. What's the best way to add > content to this new class from the web interface? @note is special in that it implicitly uses 'messages' and the 'msg' class. See the customization docs at http://roundup.sourceforge.net/docs/customizing.html#web-interface and search for @note. You may want to try: comment-1@content=value And in a hidden input field: @link@comment=comment-1 This explicitly uses your new class names. In addition the docs say: "If both the “@note” and “@file” form variables are specified, the action: @link@msg-1@files=file-1 is also performed." This would translate to @link@comment-1@files=file-1 for your schema. Which should also be put into a hidden input field. Note that all the @link stuff is only performed if the new item (e.g. msg-1 or file-1) is non-empty. > I was also considering modifying the message class itself and adding a > type to it, and then checking the type in the nosy email detector? > Perhaps this is a better strategy? If so, how to do that from the > current change note form? This depends on if you need both, the msg class *and* the new comment class. If you don't need msg (and the default nosy behaviour that goes with it) you're probably better off modifying the nosy auditor/reactors to do what you need. Ralf -- Dr. Ralf Schlatterbeck Tel: +43/2243/26465-16 Open Source Consulting www: http://www.runtux.com Reichergasse 131, A-3411 Weidling email: [email protected] ------------------------------------------------------------------------------ _______________________________________________ Roundup-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/roundup-users