create new tag
, view all tags

SID-00991: Custom template topic for comment plugin does not enum

Status: Answered Answered TWiki version: 5.0.0 Perl version:
Category: CommentPlugin Server OS: centos 5 Last update: 5 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.


-- 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

      Change status to:
ALERT! 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.
Status Answered
Title Custom template topic for comment plugin does not enum
SupportCategory CommentPlugin
TWiki version 5.0.0
Server OS centos 5
Web server apache
Perl version

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2010-11-03 - MichaelEngel
  • 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-2016 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.