Tweak of the list-links macro in order to display caption fields if present

print-window-tiddler
Xavier Cazin 2014-09-28 21:11:58 +02:00
rodzic 6626da9b3b
commit c26bd4c5a8
3 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -6,7 +6,9 @@ tags: $:/tags/Macro
<$list filter="$filter$">
<$subtype$>
<$link to={{!!title}}>
<$transclude field="caption">
<$view field="title"/>
</$transclude>
</$link>
</$subtype$>
</$list>

Wyświetl plik

@ -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.

Wyświetl plik

@ -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:
* `<<list-links>>` produces a list of links to tiddlers that match a filter expression
* `<<list-links>>` 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