From c26bd4c5a872f56c47e9f5cfc3fada468c53ddde Mon Sep 17 00:00:00 2001 From: Xavier Cazin Date: Sun, 28 Sep 2014 21:11:58 +0200 Subject: [PATCH] Tweak of the list-links macro in order to display caption fields if present --- core/wiki/macros/list.tid | 2 ++ editions/tw5.com/tiddlers/community/Examples.tid | 1 + editions/tw5.com/tiddlers/macros/ListMacro.tid | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/wiki/macros/list.tid b/core/wiki/macros/list.tid index 30c70832a..9d22b968a 100644 --- a/core/wiki/macros/list.tid +++ b/core/wiki/macros/list.tid @@ -6,7 +6,9 @@ tags: $:/tags/Macro <$list filter="$filter$"> <$subtype$> <$link to={{!!title}}> +<$transclude field="caption"> <$view field="title"/> + diff --git a/editions/tw5.com/tiddlers/community/Examples.tid b/editions/tw5.com/tiddlers/community/Examples.tid index e4dd64d3e..450897730 100644 --- a/editions/tw5.com/tiddlers/community/Examples.tid +++ b/editions/tw5.com/tiddlers/community/Examples.tid @@ -2,6 +2,7 @@ created: 20140320230543190 modified: 20140916121854696 tags: HelloThere Community title: Examples +caption: Examples of ~TiddlyWiki being used in the wild type: text/vnd.tiddlywiki This collection showcases inspiring and interesting examples of TiddlyWiki being used in the wild. diff --git a/editions/tw5.com/tiddlers/macros/ListMacro.tid b/editions/tw5.com/tiddlers/macros/ListMacro.tid index 99505f350..a65869074 100644 --- a/editions/tw5.com/tiddlers/macros/ListMacro.tid +++ b/editions/tw5.com/tiddlers/macros/ListMacro.tid @@ -7,7 +7,7 @@ The list macro is a family of macros that produce a list of tiddlers. There are several variants of the macro: -* `<>` produces a list of links to tiddlers that match a filter expression +* `<>` produces a list of links to tiddlers that match a filter expression. If the tiddler has a //caption// field, it is displayed in lieu of the //title// field. ! Parameters