1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-13 07:24:21 +00:00
TiddlyWiki5/plugins/tiddlywiki/text-slicer/template-document.tid

44 lines
1012 B
Plaintext
Raw Normal View History

title: $:/plugins/tiddlywiki/text-slicer/templates/template-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">
<div class="tc-sliced-document-header">
''Document'': <$link><$view field="title"/></$link>
<$checkbox tiddler=<<config-show-toolbar>> field="text" checked="yes" unchecked="no" default="no"> Show toolbar</$checkbox>
</div>
<div class='tc-table-of-contents'>
<$set name="tv-show-toolbar" value={{$(config-show-toolbar)$}}>
<$list filter="[tag<currentTiddler>!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/template-tiddler" listItem="item"/>
</$set>
</div>
</div>
</$set>
</$set>
\end
<<body>>