Priority: Normal
Current State: No Action Required
Released In:
Target Release: n/a
I have a form attached to my page.
I have a
CommentPlugin template that puts up a simple menu to let the user change a data field in the attached TWiki form without the need to cclick Edit.
When the Comment template is defined in
UserCommentsTemplate, it works as expected. However, when it is defined in another topic and I use the templatetopic= parameter to access it, it fails.
%COMMENT{type="statusupdate" target="%INCLUDINGTOPIC%" templatetopic="VickiCommentTemplate"}%
The failure mode is:
- CommentPlugin sees the template and presents the menu onm the screen
- menu item can be selected * On submit, there is an error:
During save of Sandbox.VickiBrownSandbox an error was found by the version control system. Please notify your TWiki administrator.
%RED%No such template def TMPL:DEF{OUTPUT:statusupdate}%ENDCOLOR% at /var/www/twiki-local/lib/TWiki/Plugins/CommentPlugin/Comment.pm line 261.
at /var/www/twiki-local/lib/TWiki/Plugins/CommentPlugin/Comment.pm line 261
...
--
TWiki:Main/VickiBrown - 10 Oct 2008
Your definition of OUTPUT:statusupdate contains one call, to OUTPUT:threadmode. Because you have specified that you want to get templates from your template topic, the threadmode templates are not loaded. So to the code, it looks like OUTPUT:statusupdate is undefined.
When I change your output template to
X
it works fine.
No action required.
--
CrawfordCurrie - 26 Jun 2010