This question about Using an extension: Answered

Threaded view returns empty result

I have a problem with the MetaCommentPlugin displaying nothing in threaded-mode (in standard-mode everything works fine) except the comment count.

I added the comments skin to the preferences und set the preference variable COMMENTSTYLE = threaded. I can add new comments but I get no output. I tracked this down to the reason having no $params->{format} defiened if COMMENTSTYLE == threaded. But I don't find the reason for this. Can anyone help?


To answer the questin by myself: I found the reason in the MetaCommentPlugin/Core.pm where $params->{format} gets defined defined with "Foswiki::Func::expandTemplate($params->{template})". This expands in normal view to "comments::format::simple" and in threaded view to "comments::format::threaded" which is not defined in templates/metacomments.tmpl. I added this definitions to templates/metacomments.tmpl and now I get output as expected.

Thanks a lot for the great Extension, -- NicoAch - 24 Jul 2010


Nico, could you post your updated template here? I want to use a threaded view, but cannot see how to correctly update the metacomments.tmpl correctly. Thanks. SteveJones.

QuestionForm edit

Subject Using an extension
Extension MetaCommentPlugin
Version Foswiki 1.0.9
Status Answered
Topic revision: r2 - 11 Apr 2011, SteveJones
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy