Display parent tiddler's name alongside the child

67 views
Skip to first unread message

passingby

unread,
Apr 30, 2021, 4:07:15 AM4/30/21
to TiddlyWiki
If I have Project tiddlers as parents and Tasks as children tagged by the parent's name:
Project-1
              Task1
              Task2
              Task3
Project-2
             Task4
             Task5

How do I create a list like this:

Task1 - Project1
Task2 - Project1
.....
Task4 - Project2

In other words, when I iterate through the list of Tasks, I wish to display the Project's name alongside. Is it possible? The only link between the project and the task is that the task is tagged with the project's name. So the logic generating the list has to look backwards somehow.

Anjar

unread,
Apr 30, 2021, 4:09:51 AM4/30/21
to TiddlyWiki
It's certainly possible. Are there some characteristics of the parents? Eg, do they all have titles starting with "Project" or are they tagged "Project"?

Best,
Anders

Soren Bjornstad

unread,
Apr 30, 2021, 7:34:23 AM4/30/21
to TiddlyWiki
I think you want the tags[] filter operator. How about:

<$list filter="[tag[Task]]">
    <$link to=<<currentTiddler>>/> (part of project <$link to={{{ [all[current]tags[]tag[Project]] }}}/>)
</$list>

This assumes your tasks are tagged Task and your projects are tagged Project...you can replace the tag[Task] and tag[Project] bits in the filters with whatever criteria you need to determine if something is a task or a project.

passingby

unread,
Apr 30, 2021, 1:20:49 PM4/30/21
to TiddlyWiki

Thank You! Yes, it works. I have been using TW5 off and on for quite a long, but whenever I come back after some time, I get lost and need help. 

Tiddlywiki is such a unique and wonderful software, but unfortunately, it is like this, at least with me, every time I come back after a gap, there is a learning curve to be climbed up again.
Reply all
Reply to author
Forward
0 new messages