1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-13 03:30:27 +00:00
TiddlyWiki5/plugins/tiddlywiki/comments/config.tid
Jermolene ec18a55033 Comments plugin: several enhancements
As proposed in #3378

* Experimental support for comments on the entire wiki (enable in the plugin config panel). Implemented as comments on $:/SiteTitle, with the comments appearing at the top of the story river
* Refactor the "add comment" button actions so that they can be reused
* Refactor the comment toolbar to be extensible via a system tag
* Add an $:/AdvancedSearch canned filter for accessing all comments
2018-08-07 21:37:07 +01:00

25 lines
878 B
Plaintext

title: $:/plugins/tiddlywiki/comments/config
\define select(description,filter)
<$button>
<$action-setfield $tiddler="$:/config/Comments/EnableFilter" $value=<<__filter__>>/>
$description$
</$button>
\end
! Wiki Comments
<$checkbox tiddler="$:/config/Comments/EnableWikiComments" field="text" checked="yes" unchecked="no" default="no"> <$link to="$:/config/Comments/EnableWikiComments">Allow wiki-level comments as well as tiddler comments</$link> </$checkbox>
! Tiddler Comments
This filter expression determines which tiddlers will have commenting enabled:
<$edit-text tiddler="$:/config/Comments/EnableFilter" tag="input"/>
Or you can choose a preselected filter:
* <<select "All tiddlers except system tiddlers" "[all[current]!is[system]]">>
* <<select "Only tiddlers tagged 'commentable'" "[all[current]tag[commentable]]">>
* <<select "Disable all commenting" "">>