Priority: Normal
Current State: Closed
Released In: 1.0.7
Target Release: patch
Applies To: Engine
Component:
Branches:
It seems that the
CommentPlugin can't handle templates that are in subwebs. I installed the
BlogAddOn into a subweb (Sandbox/SubWeb). The
BlogPostViewTemplate topic has the following comment plugin invocation:
%COMMENT{rows="6" cols="100" noform="on" type="blogpost" templatetopic="BlogPostCommentTemplate" target="%TOPIC%" button="%MAKETEXT{"Add comment"}%" }%
When TWiki renders a blog post, it emits the following error in the warning log:
(TWiki::Plugins::CommentPlugin::Comment) Could not read template file 'Sandbox/SubWeb.BlogPostCommentTemplate'
I have verified that that topic does exist. If I install the
BlogAddOn into a top level web (Sandbox), it works fine.
--
TWiki:Main/DiabJerius - 26 Sep 2008
OK, I tried to reproduce this on trunk and failed. Here's what I did:
- Created Web/SubWeb/BlogPostCommentTemplate.txt, pasted in a copy of CommentPluginTemplateExample
- Create Web/SubWeb/BlahBlah.txt and added Blah Blah %COMMENT{templatetopic="BlogPostCommentTemplate"}% Blah Blah to it
- A comment box appears, and accepts input, which is saved without errors.
However I see the problem on Release01x00, and it's a core bug so changed the attribution. The relevant fix for trunk was
Item1704. Now fixed in 1.0.7 too.
--
CrawfordCurrie - 20 Sep 2009