mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-27 01:14:44 +00:00
4ea5dce284
1. Switch from using the text field of lists for storing the associated filter to using the field `toc-list-filter` (to make it harder to accidentally parse the text of an ordinary tiddler as a filter) 2. Fix several bugs
42 lines
912 B
Plaintext
42 lines
912 B
Plaintext
title: $:/plugins/tiddlywiki/text-slicer/templates/interactive/document
|
|
|
|
\define config-show-toolbar()
|
|
$:/config/plugins/tiddlywiki/text-slicer/show-toolbar/$(currentTiddler)$
|
|
\end
|
|
|
|
\define config-heading-status()
|
|
$:/config/plugins/tiddlywiki/text-slicer/heading-status/$(currentTiddler)$
|
|
\end
|
|
|
|
\define body()
|
|
<$set name="tv-heading-status-config-title" value=<<config-heading-status>>>
|
|
|
|
<$set name="tv-show-toolbar" value={{$(config-show-toolbar)$}}>
|
|
|
|
<div class="tc-sliced-document">
|
|
|
|
{{||$:/plugins/tiddlywiki/text-slicer/ui/document/header}}
|
|
|
|
<div class='tc-sliced-document-body'>
|
|
|
|
<$set name="tv-show-toolbar" value={{$(config-show-toolbar)$}}>
|
|
|
|
<$set name="tv-exclude-filter" value={{!!toc-exclude-filter}}>
|
|
|
|
<$list filter="[list<currentTiddler>!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/interactive/tiddler"/>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
\end
|
|
|
|
<<body>>
|