From 91acad0f7ce8637945a953dfcb122cd31292626d Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 8 Jul 2014 10:16:10 +0100 Subject: [PATCH] Add support for story backdrop and frontdrop Allows elements to be added above or below the story river --- core/ui/PageTemplate/story.tid | 22 ++++++++++++++++++- .../tw5.com/tiddlers/concepts/SystemTags.tid | 4 +++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/core/ui/PageTemplate/story.tid b/core/ui/PageTemplate/story.tid index 7545b7c0b..692bce49c 100644 --- a/core/ui/PageTemplate/story.tid +++ b/core/ui/PageTemplate/story.tid @@ -3,6 +3,26 @@ tags: $:/tags/PageTemplate
-<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" template="$:/core/ui/ViewTemplate" editTemplate="$:/core/ui/EditTemplate" storyview={{$:/view}} /> +
+ +<$list filter="[all[shadows+tiddlers]tag[$:/tags/StoryBackdrop]!has[draft.of]]"> + +<$transclude/> + + + +
+ +<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" template="$:/core/ui/ViewTemplate" editTemplate="$:/core/ui/EditTemplate" storyview={{$:/view}} /> + +
+ +<$list filter="[all[shadows+tiddlers]tag[$:/tags/StoryFrontdrop]!has[draft.of]]"> + +<$transclude/> + + + +
diff --git a/editions/tw5.com/tiddlers/concepts/SystemTags.tid b/editions/tw5.com/tiddlers/concepts/SystemTags.tid index 1ca539491..c3977a897 100644 --- a/editions/tw5.com/tiddlers/concepts/SystemTags.tid +++ b/editions/tw5.com/tiddlers/concepts/SystemTags.tid @@ -1,5 +1,5 @@ created: 20130822080600000 -modified: 20131228161338857 +modified: 20140707161338857 tags: concepts title: SystemTags type: text/vnd.tiddlywiki @@ -17,6 +17,8 @@ System tags are used to give special behaviour to tiddlers: * [[$:/tags/EditToolbar]] for the edit mode tiddler toolbar * [[$:/tags/PageControls]] for the page control tools in the sidebar * [[$:/tags/PageTemplate]] for the main page elements +* [[$:/tags/StoryBackdrop]] for elements to be placed at the top of the story river +* [[$:/tags/StoryFrontdrop]] for elements to be placed at the bottom of the story river * [[$:/tags/RawMarkup]] for raw markup to be included in the generated HTML file ! System tags in use