From 1ca6305acb5ad4624b7253feac2694581b2df01b Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Fri, 15 Jul 2022 17:37:25 +0100 Subject: [PATCH] Split the tiddler subtitle into individual segments tagged $:/tags/ViewTemplate/Subtitle (#6779) --- core/ui/ViewTemplate/subtitle.tid | 8 ++++++-- core/ui/ViewTemplate/subtitle/modified.tid | 4 ++++ core/ui/ViewTemplate/subtitle/modifier.tid | 4 ++++ core/wiki/tags/ViewTemplateSubtitle.tid | 2 ++ .../systemtags/SystemTag_ $__tags_ViewTemplate.tid | 4 ++-- .../SystemTag_ $__tags_ViewTemplateSubtitle.tid | 9 +++++++++ 6 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 core/ui/ViewTemplate/subtitle/modified.tid create mode 100644 core/ui/ViewTemplate/subtitle/modifier.tid create mode 100644 core/wiki/tags/ViewTemplateSubtitle.tid create mode 100644 editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_ViewTemplateSubtitle.tid diff --git a/core/ui/ViewTemplate/subtitle.tid b/core/ui/ViewTemplate/subtitle.tid index a23026861..a0436b095 100644 --- a/core/ui/ViewTemplate/subtitle.tid +++ b/core/ui/ViewTemplate/subtitle.tid @@ -4,7 +4,11 @@ tags: $:/tags/ViewTemplate \whitespace trim <$reveal type="nomatch" stateTitle=<> text="hide" tag="div" retain="yes" animate="yes">
-<$link to={{!!modifier}} /> -<$view field="modified" format="date" template={{$:/language/Tiddler/DateFormat}}/> +<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate/Subtitle]!has[draft.of]]" variable="subtitleTiddler" counter="indexSubtitleTiddler"> +<$list filter="[match[no]]" variable="ignore"> +  + +<$transclude tiddler=<> mode="inline"/> +
diff --git a/core/ui/ViewTemplate/subtitle/modified.tid b/core/ui/ViewTemplate/subtitle/modified.tid new file mode 100644 index 000000000..83f288b14 --- /dev/null +++ b/core/ui/ViewTemplate/subtitle/modified.tid @@ -0,0 +1,4 @@ +title: $:/core/ui/ViewTemplate/subtitle/modified +tags: $:/tags/ViewTemplate/Subtitle + +<$view field="modified" format="date" template={{$:/language/Tiddler/DateFormat}}/> \ No newline at end of file diff --git a/core/ui/ViewTemplate/subtitle/modifier.tid b/core/ui/ViewTemplate/subtitle/modifier.tid new file mode 100644 index 000000000..8437ada9b --- /dev/null +++ b/core/ui/ViewTemplate/subtitle/modifier.tid @@ -0,0 +1,4 @@ +title: $:/core/ui/ViewTemplate/subtitle/modifier +tags: $:/tags/ViewTemplate/Subtitle + +<$link to={{!!modifier}}/> \ No newline at end of file diff --git a/core/wiki/tags/ViewTemplateSubtitle.tid b/core/wiki/tags/ViewTemplateSubtitle.tid new file mode 100644 index 000000000..b8b912bc7 --- /dev/null +++ b/core/wiki/tags/ViewTemplateSubtitle.tid @@ -0,0 +1,2 @@ +title: $:/tags/ViewTemplate/Subtitle +list: $:/core/ui/ViewTemplate/subtitle/modifier $:/core/ui/ViewTemplate/subtitle/modified diff --git a/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_ViewTemplate.tid b/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_ViewTemplate.tid index 899d236c1..c436d06d2 100644 --- a/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_ViewTemplate.tid +++ b/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_ViewTemplate.tid @@ -1,9 +1,9 @@ caption: $:/tags/ViewTemplate created: 20180926170345251 -description: marks the view template +description: identifies the individual segments that are displayed as part of the view template modified: 20180926171456532 tags: SystemTags title: SystemTag: $:/tags/ViewTemplate type: text/vnd.tiddlywiki -The [[system tag|SystemTags]] `$:/tags/ViewTemplate` marks the view template \ No newline at end of file +The [[system tag|SystemTags]] `$:/tags/ViewTemplate` identifies the individual segments that are displayed as part of the view template \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_ViewTemplateSubtitle.tid b/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_ViewTemplateSubtitle.tid new file mode 100644 index 000000000..3845c3f2c --- /dev/null +++ b/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_ViewTemplateSubtitle.tid @@ -0,0 +1,9 @@ +caption: $:/tags/ViewTemplate/Subtitle +created: 20220714093251204 +description: identifies the individual segments that are displayed as the tiddler subtitle +modified: 20220714093251204 +tags: SystemTags +title: SystemTag: $:/tags/ViewTemplate/Subtitle +type: text/vnd.tiddlywiki + +The [[system tag|SystemTags]] `$:/tags/ViewTemplate/Subtitle` identifies the individual segments that are displayed as the tiddler subtitle \ No newline at end of file