SID-00991: Custom template topic for comment plugin does not enum
| Status: |
Answered |
TWiki version: |
5.0.0 |
Perl version: |
|
| Category: |
CommentPlugin |
Server OS: |
centos 5 |
Last update: |
15 years ago |
I am using a custom prompt and output for the comment plugin.
I created a topic named
"JobPostCommentTemplate" and put in the defs for prompt and output.
I used this line for the comment:
%COMMENT{templatetopic="JobPostCommentTemplate" type="jobpost" }%
that did not work. So I Cut and pasted the raw edit from the template and put it in
"TWiki.UserCommentsTemplate".
Then i changed the comment to:
%COMMENT{ type="jobpost" }%
And it worked.
So I thought maybe the template was not picked up. So I went to
"Main.WebCreateNewTopic" page and looked in the dropdown list under
"Use Template", and I found the Template in the list.
So, the question is why does
"templatetopic" seem to be ignored
--
ScottGutman - 2010-10-06
Discussion and Answer
Not sure why it does not work in your case. See for example, this comment box, it is defined as:
%COMMENT{ type="support_comment" templatetopic="SupportCommentTemplate" }% pointing to the
SupportCommentTemplate topic.
Did you include the generic template
%TMPL:INCLUDE{"%SYSTEMWEB%.CommentPlugin"}% in your template topic?
--
PeterThoeny - 2010-10-06
Your a genius!!
I added that include line and it worked.
Thanks
--
ScottGutman - 2010-10-12
--
ScottGutman - 2010-10-12
Yes, not very intuitive & and not well thought through spec on requiring a TMPL:INCLUDE for custom templates.
--
PeterThoeny - 2010-10-12
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.