Comments plugin: Switch to using the list field to attach comments

https://github.com/Jermolene/TiddlyWiki5/issues/3378#issuecomment-413137626
This commit is contained in:
Jermolene
2018-08-15 13:50:29 +01:00
parent 763f8afaf2
commit f210b75a30
6 changed files with 32 additions and 8 deletions

View File

@@ -1,5 +1,7 @@
title: $:/plugins/tiddlywiki/comments/add-comment-button-actions
<$set name="username" value={{$:/status/UserName}} emptyValue="(anonymous)">
<$action-createtiddler $basetitle={{{ [[Comment by ']addsuffix<username>addsuffix[' on ']addsuffix<currentTiddler>addsuffix[']] }}} comment-target=<<currentTiddler>> text="" edit-mode="yes"/>
<$set name="target" filter="[<currentTiddler>]">
<$action-createtiddler $basetitle={{{ [[Comment by ']addsuffix<username>addsuffix[' on ']addsuffix<currentTiddler>addsuffix[']] }}} role="comment" list=<<target>> text="" edit-mode="yes"/>
</$set>
</$set>