structuring tags

109 views
Skip to first unread message

J F

unread,
Feb 27, 2019, 4:17:11 AM2/27/19
to TiddlyWiki
Apologies if this has been asked before - I have searched but haven't found what I'm looking for. 

I'm new to TW and I'm looking to set up a knowledge base type structure for my studies. I've already set up a simple structure for one topic that works in a ToC (tags in brackets): 

Table of Contents 
"TopicX"  (Table of Contents)
"TopicX Concepts" (TopicX)
Concept1 ("TopicX Concepts")
Concept2 ("TopicX Concepts")
 etc
 "TopicX Sources" (TopicX)
"TopicX Definitions" (TopicX)
 
"TopicY" (Table of Contents)
"TopicY Concepts" (TopicY)
 "TopicY Sources" (TopicY)
"TopicY Definitions"  (TopicY)
 Etc

My question is: I'd also like to be able to create a list just of 'concept' or just of 'sources', etc. 

do I need to tag each individual tiddler with 'Concept' (say) as well as "TopicX Concepts", or can I do a filter for all tiddlers tagged where the tag contains 'Concepts'? 

Thanks for your help

J F

unread,
Feb 27, 2019, 4:29:36 AM2/27/19
to TiddlyWiki
Sorry, perhaps I should have said that I don't want the list of just 'concepts' grouped by topic but a simple alphabetical list of all conceits.

TonyM

unread,
Feb 27, 2019, 4:59:04 AM2/27/19
to TiddlyWiki
Jf

If you maintain a naming standard where say all concepts have concepts at the end of the title you can list all tiddlers with the suffix[concepts] and if all topics begin topic prefix[topic]

But you could add a concept tag to each tiddler made easier by creating a concept using new here on the topic, add the concept tag the clone the first concept to create new ones, they will already have the topic and concept tag.

Regards
Tony

TonyM

unread,
Feb 27, 2019, 5:07:48 AM2/27/19
to TiddlyWiki
Of course we can go a lot further with this like create tidder that appears in the view template that in tiddlers tagged topic you have a new concept button etc..

Tony

S. S.

unread,
Feb 27, 2019, 5:51:01 AM2/27/19
to TiddlyWiki
J F,
Open https://www.tiddlywiki.com/
Paste the code below into a new tiddler, and save the tiddler.
Read what is written in the tiddler. That could help you to figure out how to make your list. If not, then just post here again and perhaps we can help more.

The first `$list` creates a list of all `tags` that have ''Examples'' as the last word in the tag.

<$list filter="[all[tiddlers]tags[]suffix[Examples]]">
<$macrocall $name="tag" tag=<<currentTiddler>>/>
</
$list>

The second `$list` creates a list of all tiddlers that have those tags.

```
<$list filter="[all[tiddlers]tags[]suffix[Examples]]" variable="exmpl">
<$list filter="[tag<exmpl>]">

</$list>
</$list>
```


<$list filter="[all[tiddlers]tags[]suffix[Examples]]" variable="exmpl">
<$list filter="[tag<exmpl>]">

</$list>
</
$list>

Regards

J F

unread,
Feb 27, 2019, 2:43:06 PM2/27/19
to TiddlyWiki
Thanks both - this is great! I'm pretty new so I'll definitely take a 'walk before I run' approach, and this looks just what I need.
Reply all
Reply to author
Forward
0 new messages