You are here: Foswiki>Tasks Web>Item10017 (14 Oct 2012, GeorgeClark)Edit Attach

Item10017: CommentPlugin ignores order of entries when target is not the current topic

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: CommentPlugin
Branches:
Reported By: HenningDampel
Waiting For:
Last Change By: GeorgeClark
When using the commentplugin with a type of "belowthreadmode" or "tablepretend", normally the newest entry gets on the top of the list/table. When using a target topic other than the current topic, the order is wrong, so the newest entry gets always on the bottom of the list/table

-- HenningDampel - 12 Nov 2010

Insertion is always done relative to the target, be it a COMMENT tag, regular expression, on top/bottom of the topic. Can you provide a specific example illustrating how you think it is going wrong? You can use the Sandbox web on this site.

-- CrawfordCurrie - 12 Oct 2011

Look at SandBox -> CommentTestForItem10017 - there I define another Topic as Target. In the Target Topic, SandBox -> CommentTestForItem10017Target , the newest entry is at the bottom instead of the top of the table.

-- HenningDampel - 13 Oct 2011

The tableprepend and tableappend when used with a target must also include an anchor so that the plugin can find the table. With prepend, insert the anchor ahead of the table, and with append, insert the anchor after the table. As Crawford mentioned above, you could also use a regular expression to find the table.

I've updated your Sandbox test to show the prepend anchor operation.

-- GeorgeClark - 15 Jan 2012

Thanks a lot !

-- HenningDampel - 16 Jan 2012
 

ItemTemplate edit

Summary CommentPlugin ignores order of entries when target is not the current topic
ReportedBy HenningDampel
Codebase 1.1.2
SVN Range
AppliesTo Extension
Component CommentPlugin
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r8 - 14 Oct 2012, GeorgeClark
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