From 97979e1fb148776d034422b4150f06fa0093e06a Mon Sep 17 00:00:00 2001 From: Jermolene Date: Fri, 28 Aug 2015 19:40:58 +0100 Subject: [PATCH] Text-Slicer: update docs and change default view --- plugins/tiddlywiki/text-slicer/docs.tid | 7 +++++++ .../tiddlywiki/text-slicer/template-display-document.tid | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/plugins/tiddlywiki/text-slicer/docs.tid b/plugins/tiddlywiki/text-slicer/docs.tid index a9f0a8472..c5d4d8c1f 100644 --- a/plugins/tiddlywiki/text-slicer/docs.tid +++ b/plugins/tiddlywiki/text-slicer/docs.tid @@ -29,6 +29,13 @@ These tiddlers are bound together using tagging: child tiddlers are tagged with Slicing generates the following component tiddlers: +!!! Document + +The document itself is represented by a tiddler with the following fields: + +* ''title'': the text ''"Sliced up "'' plus the title of the tiddler that was sliced +* ''text'': the text `{{||$:/plugins/tiddlywiki/text-slicer/templates/display-document}}` + !!! Headings Tiddlers representing headings have the following fields: diff --git a/plugins/tiddlywiki/text-slicer/template-display-document.tid b/plugins/tiddlywiki/text-slicer/template-display-document.tid index fd50b51ec..cda057963 100644 --- a/plugins/tiddlywiki/text-slicer/template-display-document.tid +++ b/plugins/tiddlywiki/text-slicer/template-display-document.tid @@ -15,7 +15,7 @@ $:/plugins/tiddlywiki/text-slicer/config/view-type/$(currentTiddler)$ \define display-tiddler() <$set name="tv-show-toolbar" value={{$(config-show-toolbar)$}}> -View: <$select tiddler=<> default="display-document"> +View: <$select tiddler=<> default="toc-tabbed-internal-nav"> @@ -29,7 +29,7 @@ View: <$select tiddler=<> default="display-document"> <$list filter="[field:title[$(config-view-type)$]]" variable="listItem" emptyMessage=""" -<$macrocall $name="display-document" tag=<> template="$:/plugins/tiddlywiki/text-slicer/templates/toc-entry"/> +<$macrocall $name="toc-tabbed-internal-nav" tag=<> template="$:/plugins/tiddlywiki/text-slicer/templates/toc-entry"/> """>