SID-00443: Comment Template
| Status: |
Answered |
TWiki version: |
4.2.0 |
Perl version: |
5.008008 (linux) |
| Category: |
CategoryPlugins |
Server OS: |
Linux 2.6.15.7 |
Last update: |
16 years ago |
I wanted to create a Comment template similar to the "table" template only with 3 instead of 2 fields: date, description, city Therefore I copied the code of the table template onto our page with all the other comment templates and adapted it to my needs. The topic is called
CommentsTemplates. The template I wrote you find below. When I now put the tag
No such template def TMPL:DEF{PROMPT:congresstable} I only get the error "No such template def TMPL:DEF{PROMPT:congresstable} Where did I go wrong?
%TMPL:DEF{PROMPT:congresstable}%
| <label for="comment_date">Date</label> |
<input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_date" id="comment_date" /> |
| <label for="comment_description">Description</label> |
<input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_description" id="comment_description" value="" /> |
| <label for="comment_city">City</label> |
<input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_city" id="comment_city" value="" /> |
| |
<input %DISABLED% type="submit" class="twikiButton" value="%button |
Add entry%" /> |
%TMPL:END%
%TMPL:DEF{OUTPUT:congresstable}%%POS:BEFORE% * - -
%TMPL:END%
--
HansPeterWaltisberg - 2009-07-29
I found out how to get it working I have to define where it finds the template, obviously with templatetopic="vvv". What got me confused here was that some comment templates worked and others didn't, also some of the templates defined on our own
CommentTemplates page. But I guess the system simply took the default template from the twiki comment template page and ignored the customized template on our own page.
--
HansPeterWaltisberg - 2009-07-30
Discussion and Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.