how to show the content in list-links macro

71 views
Skip to first unread message

imleg...@gmail.com

unread,
Sep 20, 2020, 10:21:39 PM9/20/20
to TiddlyWiki
I know the macro 

<<list-links "[prefix[ExcelLogo]!tag[summary]]">> 
which can list all the certain links. But I need all links show the content. 

Like "{{}}" effect. How to make it? 

Eric Shulman

unread,
Sep 20, 2020, 10:55:54 PM9/20/20
to TiddlyWiki
The <<list-links>> macro is just a short cut for using the <$list> widget.  However, as you've noticed, it only outputs links to tiddlers, not content. To produce more complex output, you need to use the <$list> widget instead.

Something like this:
<$list filter="[prefix[ExcelLogo]!tag[summary]]">
   <$link />:
   
<blockquote> <$transclude mode="block" /> </blockquote>
</$list>

1) $list matches the specified filter, and automatically sets <<currentTiddler>> for use in the widget contents
2) $link creates a link using the <<currentTiddler>> title as the default.
3) The <blockquote>...</blockquote> is standard HTML, to show the tiddler content indented with a vertical line along the left.
4) $transclude shows the content of the <<currentTiddler>>.
5) Note use of mode="block" to ensure that tables, headings and lists are formatted properly (as compared to mode="inline")

references:

enjoy,
-e

imleg...@gmail.com

unread,
Sep 22, 2020, 3:29:01 AM9/22/20
to TiddlyWiki
Thanks a lot for your reply. It works. 

Can you recommend some basic tutorial about tiddlywiki  ? 

When reading : 
<$set name="tv-wikilink-tooltip" value="I'm a link to {{!!title}}">  
 I don't know the meaning of "!!title"

When reading: 
<$link to=<<currentTiddler>>><$view field="title"/></$link>  
I don't know the meaning of "<<>>". 

The tutorial I found is pretty scattered. 

I think I don't known some basic concept of tiddlywiki syntax yet. 

imleg...@gmail.com

unread,
Sep 22, 2020, 3:32:25 AM9/22/20
to TiddlyWiki
<$list filter="[prefix[ExcelLogo]!tag[summary]]">
   <$link />:
   <blockquote> <$transclude mode="block" /> </blockquote>
</$list>  

One more question 
the tag(like <$transclude mode="block" />) in the $list wiget will use the list result one by one as parameter?  What is the basic mechanism or implementation method here? 

On Monday, September 21, 2020 at 10:55:54 AM UTC+8 Eric Shulman wrote:

PMario

unread,
Sep 22, 2020, 1:37:46 PM9/22/20
to TiddlyWiki
Hi,

<<list-links macro is defined here: https://tiddlywiki.com/#%24%3A%2Fcore%2Fmacros%2Flist

-m

PMario

unread,
Sep 22, 2020, 1:39:29 PM9/22/20
to TiddlyWiki
Reply all
Reply to author
Forward
0 new messages