Is there a way to format the display of returned links, when using "list-links filter"?

138 views
Skip to first unread message

Rene

unread,
Jun 20, 2018, 4:49:59 AM6/20/18
to TiddlyWiki
Hi! I searched this forum but couldn't really find what I was looking for, and could not quite ferret the info out from the official discussions about filter "steps", "runs" and "expressions" either.

I would like the links returned by a "list-links filter" to also show the tags they are tagged with.  Something like this (or similar)...



Is this even possible?  I am hoping it's some syntax-fu with the list-links macro...

Many thanks for any assistance!

TonyM

unread,
Jun 20, 2018, 10:23:32 AM6/20/18
to TiddlyWiki
Rene,

When I first started teaching myself TW5 I also often reverted to the list-links macro however using the list widget lets you control your output a lot more.

Put this \define at the top of the tiddler or in one tagged $:/tags/Macro 
\define showtagsaspills(hidetagfilter)
<$set name=tagfilter value={{!!tags}}$hidetagfilter$>
<$list filter=<<tagfilter>> >
  {{||$:/core/ui/TagTemplate}}
</$list>
</$set>
\end

<<showtagsaspills>> will list all the tags in the current tiddler as pills and you can wrap this in another <$list widget to select the tiddlers to which it applies


eg

<$list filter="[tag[mytag1]]">> >
<$link to={{!!title}} tooltip="Custom tooltip eg open tiddler">{{!!title}}</$link> <<showtagsaspills>>
</$list>

This should work but code not tested this time.
It demonstrates how not only can you put more inside a list widget, but call macros which themselves contain list widgets, or nest list widgets, none of this can be done with list-links

Regards
Tony

Rene Apec

unread,
Jun 20, 2018, 6:04:51 PM6/20/18
to tiddl...@googlegroups.com
Many thanks TonyM! I'm not at my desk yet but will try this out soonest and get back to you :D

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/YFEEHYyw5Yc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/39cd01ff-04e5-41f6-80b0-a21db7dd1ea9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rene

unread,
Jun 21, 2018, 8:19:56 AM6/21/18
to TiddlyWiki
Hi TonyM:

I'm happy to confirm to you that your solution worked very nicely...


I love it!  Thank you very very much!

Marked Best Answer
by Question Asker

- Rene

TonyM

unread,
Jun 21, 2018, 7:01:25 PM6/21/18
to TiddlyWiki
My Pleasure Rene,

Thanks for the confirming it helped.

Just please excuse my contributing to your, potential obsession with TiddlyWiki, its addictive and I am hooked.

Tony :)

ReneY

unread,
Jun 21, 2018, 8:13:23 PM6/21/18
to TiddlyWiki
Hi TonyM:

Oh i was hooked on TW Classic yet!  I'm a returnee and fell in love with TW5 the instant i saw it ;)

Thank you again!
Reply all
Reply to author
Forward
0 new messages