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

@@ -2,8 +2,15 @@ title: $:/plugins/tiddlywiki/comments/header-view-template-segment
tags: $:/tags/ViewTemplate
list-before: $:/core/ui/ViewTemplate/body
<$list filter="[all[current]has[comment-target]]" variable="ignore">
<$list filter="[all[current]role[comment]]" variable="ignore">
<div class="tc-is-comment-header">
This tiddler is a comment on <$link to={{!!comment-target}}><$text text={{!!comment-target}}/></$link>
This tiddler is a comment on:
<ul>
<$list filter="[list<currentTiddler>sort[title]]">
<li>
<$link to=<<currentTiddler>>><$text text=<<currentTiddler>>/></$link>
</li>
</$list>
</ul>
</div>
</$list>