From d922c3a6872a7bb12bc3d46ff6ecb6c0ee56ff18 Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Sat, 21 Sep 2024 08:05:17 +0200 Subject: [PATCH] make it possible to add View and EditTemplates --- TiddlyFlex/global/layout/templates.tid | 2 +- TiddlyFlex/plugin.info | 2 +- TiddlyFlex/ui/Templates/ViewTemplate.tid | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TiddlyFlex/global/layout/templates.tid b/TiddlyFlex/global/layout/templates.tid index bcc3e63..5ca6a99 100644 --- a/TiddlyFlex/global/layout/templates.tid +++ b/TiddlyFlex/global/layout/templates.tid @@ -25,7 +25,7 @@ tags: $:/tags/Global typeSelectionTiddler=<>> <$keyboard key="((cancel-edit-tiddler))" actions=<> tag="div"> <$keyboard key="((save-tiddler))" actions=<> tag="div"> - <$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlyFlex/EditTemplate]!is[draft]]" variable="listItem"> + <$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlyFlex/EditTemplate]!is[draft]] [all[shadows+tiddlers]tag[$:/tags/EditTemplate]!is[draft]] -[[$:/core]plugintiddlers[]tag[$:/tags/EditTemplate]]" variable="listItem"> <$transclude tiddler=<>/> diff --git a/TiddlyFlex/plugin.info b/TiddlyFlex/plugin.info index 2a9b93c..3605ebc 100644 --- a/TiddlyFlex/plugin.info +++ b/TiddlyFlex/plugin.info @@ -4,7 +4,7 @@ "name": "TiddlyFlex", "plugin-type": "plugin", "author": "Simon Huber", - "version": "0.5.2", + "version": "0.5.3", "core-version": ">=5.3.3", "source": "https://github.com/BurningTreeC/TiddlyFlex", "list": "readme license" diff --git a/TiddlyFlex/ui/Templates/ViewTemplate.tid b/TiddlyFlex/ui/Templates/ViewTemplate.tid index a9da39a..6340393 100644 --- a/TiddlyFlex/ui/Templates/ViewTemplate.tid +++ b/TiddlyFlex/ui/Templates/ViewTemplate.tid @@ -10,7 +10,7 @@ $:/state/folded/$(currentTiddler)$ <$vars storyTiddler=<> tiddlerInfoState=<>>
> data-tags={{!!tags}} class={{{ [all[shadows+tiddlers]tag[$:/tags/ClassFilters/TiddlerTemplate]!is[draft]] :map:flat[subfilter{!!text}] [subfiltercount[]addprefix[tc-tiddlyflex-column-]] tc-tiddler-view-frame [is[tiddler]then[tc-tiddler-exists]] [is[missing]!is[shadow]then[tc-tiddler-missing]] [is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [is[shadow]is[tiddler]then[tc-tiddler-overridden-shadow]] [is[system]then[tc-tiddler-system]] [{!!class}] [tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}} role="article"> <$tiddlyflex-draggable enable={{{ [{$:/state/tiddlyflex/story-river/tiddler/drag-enabled}match[yes]then[$:/state/tiddlyflex/story-river/fullscreen/]addsuffixis[missing]then[yes]] ~[[no]] }}} tiddler=<> startactions=<> endactions=<> class="tc-tiddler-frame"> - <$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlyFlex/ViewTemplate]!is[draft]]" variable="listItem"> + <$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlyFlex/ViewTemplate]!is[draft]] [all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!is[draft]] -[[$:/core]plugintiddlers[]tag[$:/tags/ViewTemplate]]" variable="listItem"> <$transclude tiddler=<>/> <% if [{$:/state/dragging}match[yes]then{$:/state/tiddlyflex/story-river/tiddler/drag-enabled}match[yes]then[$:/state/story-river/full-screen/]addsuffixis[missing]] %>