From 1335dff45013f83fb06a47453e6063b5c0e2c0b3 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Wed, 3 Feb 2016 12:48:11 +0000 Subject: [PATCH] Text-slicer: Checkbox for hiding document metadata --- .../text-slicer/templates/interactive/document.tid | 4 ++++ plugins/tiddlywiki/text-slicer/ui/document/header.tid | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/plugins/tiddlywiki/text-slicer/templates/interactive/document.tid b/plugins/tiddlywiki/text-slicer/templates/interactive/document.tid index 171c73c26..875f16493 100644 --- a/plugins/tiddlywiki/text-slicer/templates/interactive/document.tid +++ b/plugins/tiddlywiki/text-slicer/templates/interactive/document.tid @@ -8,6 +8,10 @@ $:/config/plugins/tiddlywiki/text-slicer/show-preview-document/$(tv-heading-stat $:/config/plugins/tiddlywiki/text-slicer/show-toolbar/$(currentTiddler)$ \end +\define config-show-metadata() +$:/config/plugins/tiddlywiki/text-slicer/show-metadata/$(currentTiddler)$ +\end + \define config-heading-status() $:/config/plugins/tiddlywiki/text-slicer/heading-status/$(currentTiddler)$ \end diff --git a/plugins/tiddlywiki/text-slicer/ui/document/header.tid b/plugins/tiddlywiki/text-slicer/ui/document/header.tid index 3cd254183..1908dff41 100644 --- a/plugins/tiddlywiki/text-slicer/ui/document/header.tid +++ b/plugins/tiddlywiki/text-slicer/ui/document/header.tid @@ -20,13 +20,12 @@ title: $:/plugins/tiddlywiki/text-slicer/ui/document/header ''Exclude filter'': <$edit-text field="toc-exclude-filter"/> -<$checkbox tiddler=<> field="text" checked="yes" unchecked="no" default="no"> Show toolbar - -<$button> +<$checkbox tiddler=<> field="text" checked="yes" unchecked="no" default="no"> Show toolbar <$checkbox tiddler=<> field="text" checked="yes" unchecked="no" default="no"> Show metadata <$button> <$action-sendmessage $message="tm-open-window" $param=<> template="$:/plugins/tiddlywiki/text-slicer/templates/plain/document"/> View document +<$reveal state=<> default="no" type="match" text="yes"> <$list filter="[all[system+tiddlers]tag[$:/tags/DocumentMetaData]]" variable="listItem"> @@ -34,5 +33,7 @@ View document
+ +