How to query tags?

83 views
Skip to first unread message

Thomas Clark

unread,
Sep 10, 2018, 9:08:37 PM9/10/18
to TiddlyWiki
Hey all,

 I have two questions of which are fairly simple but I am new to Tiddly programming and need some guidance.

  1. Is there away to create a tiddler that contains a text list of all tags in the database?
  2. Is there a way to create a tiddler that  contains data from all tiddlers that contain  tags both A and B?  Could I also included the tittle from each individual tiddler to serve as a border?

TonyM

unread,
Sep 10, 2018, 9:55:50 PM9/10/18
to TiddlyWiki
Thomas,

Too Easy. TiddlyWiki.com is the first reference to use but others have provided introductory information

1. The list you need is

<$list filter="[tags[]]">


</$list>


But I expect you don't want system tiddlers, so use

<$list filter="[tags[]!is[system]]">
 
</$list>


But then you asked for text not links so use

<$list filter="[tags[]!is[system]]">
    <$view field=title format="text"/><br>
</$list>


However prefer a list with the tag pill you can click on and see the tiddlers they tag

<$list filter="[tags[]!is[system]]">
    {{||$:/core/ui/TagTemplate}}
<br>
</$list>


Remove the <br> if you do not want them to a new line break on each
Inside each of the lists the each tag name becomes  the "current tiddler" 


Because I must work I will leave item 2 for now.

Tony

Thomas Clark

unread,
Sep 10, 2018, 10:06:26 PM9/10/18
to tiddl...@googlegroups.com
THANK YOU SO MUCH!!! Question how does one go about learning something like this? I had not clue where to even beging.

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, 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/0a408c82-89c7-4ba3-b5cf-a43561d2eb44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alexei R

unread,
Sep 12, 2018, 6:47:07 AM9/12/18
to tiddl...@googlegroups.com
You can start with Introduction to Lists and Filters ...
As JFK said: "We choose to go to the Moon in this decade and do the other things, not because they are easy, but because they are hard"
Reply all
Reply to author
Forward
0 new messages