1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-26 11:37:20 +00:00
TiddlyWiki5/plugins/tiddlywiki/text-slicer/ui/document/header.tid

40 lines
1.2 KiB
Plaintext
Raw Normal View History

2015-08-31 19:32:32 +00:00
title: $:/plugins/tiddlywiki/text-slicer/ui/document/header
\define metadatafield()
<tr>
<td>
''<$transclude tiddler=<<listItem>> field="caption"/>''
</td>
<td>
<$reveal type="match" state="""$(listItem)$!!field-type""" text="string">
<$edit-text field={{$(listItem)$!!field}}/>
</$reveal>
<$reveal type="match" state="""$(listItem)$!!field-type""" text="list">
<$edit-text tag="textarea" field={{$(listItem)$!!field}}/>
</$reveal>
</td>
</tr>
\end
2015-08-31 19:32:32 +00:00
<div class="tc-sliced-document-header">
''Exclude filter'': <$edit-text field="toc-exclude-filter"/>
2015-08-31 19:32:32 +00:00
<$checkbox tiddler=<<config-show-toolbar>> field="text" checked="yes" unchecked="no" default="no"> Show toolbar </$checkbox> <$checkbox tiddler=<<config-show-metadata>> field="text" checked="yes" unchecked="no" default="no"> Show metadata</$checkbox> <$button>
<$action-sendmessage $message="tm-open-window" $param=<<currentTiddler>> template="$:/plugins/tiddlywiki/text-slicer/templates/plain/document"/>
2015-08-31 19:32:32 +00:00
View document
</$button>
<$reveal state=<<config-show-metadata>> default="no" type="match" text="yes">
<table>
<tbody>
<$list filter="[all[system+tiddlers]tag[$:/tags/DocumentMetaData]]" variable="listItem">
<<metadatafield>>
</$list>
</tbody>
</table>
</$reveal>
2015-08-31 19:32:32 +00:00
</div>