[TW5] multiple lists : keeping track of original tiddler

92 views
Skip to first unread message

Jean-Charles

unread,
Mar 9, 2016, 5:24:15 PM3/9/16
to TiddlyWiki

Hi have tiddlers that have a property "attendees", which contain a list of people who have their own tiddler, which have a property "organization".

I want to list the attendees by organization. So I first use a filter listing the attendees and getting their organizations, but after that, I must use a variable (this is the only way I'm aware of to keep track of the current tiddler).

First : using <<org>> works in the $view widget, but not in the $link widget : the text is correct, but the link points to the current tiddler.
Second : how do I use a variable to retrieve the matching attendees ? field:organization{org} does not work.

<$list filter="[list[!!attendees]has[organization]each[organization]get[organization]sort[]]"
       variable="org">

  <$link tiddler=<<org>>><$view tiddler=<<org>> field=title/></$link>

    <$list filter="[list[!!attendees]field:organization{org}]">
        <$link to={{!!title}}><$view field="title"/></$link>
    </$list>

</$list>

There is probably a simple answer to this, but sadly the documentation on http://tiddlywiki.com/#ListWidget sent me to the uncreated http://tiddlywiki.com/#ListWidget 

Hegart Dmishiv

unread,
Mar 9, 2016, 6:15:31 PM3/9/16
to TiddlyWiki
Hi Jean-Charles,

Sorry, I can't offer any advice on this, as I'm still quite new to TiddlyWiki myself. But I am definitely interested in the answer to your question though, as it seems relevant to my next {{DesignWrite}} course exercise, where I'm creating a simple CRM system using TW.

Also, in your final comment above, I assume you were intending to mention the uncreated NestedLists tiddler? I have quoted you in my current {{DesignWrite}} exercise here (under the "Links & WikiWords" revealer), and have amended your quote accordingly to point out the redlink (as we would call it in MediaWiki) for NestedLinks.

Hegart.

Matthew Lauber

unread,
Mar 10, 2016, 2:19:24 AM3/10/16
to TiddlyWiki
To use a previous variable in a filter use "<variable name>" in place of "[text]".

Matthew Lauber

unread,
Mar 10, 2016, 2:20:52 AM3/10/16
to TiddlyWiki
So the second filter would become "[list[!!attendees]field:organization<org>]"

Jean-Charles

unread,
Mar 10, 2016, 6:00:54 AM3/10/16
to tiddl...@googlegroups.com
Hi Matthew,

The <var> syntax works perfectly in the filters, thank you for the tip (now that I have the answer, I was also able to find it in the documentation) !
For the widget, I used the incorrect argument, so it's not solved.
<$link to=<<org>>><$view tiddler=<<org>> field=title/></$link>

Le jeudi 10 mars 2016 08:20:52 UTC+1, Matthew Lauber a écrit :
So the second filter would become "[list[!!attendees]field:organization<org>]"

Thanks for your help ! 

BJ

unread,
Mar 10, 2016, 7:28:00 AM3/10/16
to TiddlyWiki

Hi Jean-Charles,

the linkwidget user 'to'


<$link to=<<org>>><$view tiddler=<<org>> field=title/></$link>

all the best

BJ

On Thursday, March 10, 2016 at 11:00:54 AM UTC, Jean-Charles wrote:
Hi Matthew,

The <var> syntax works perfectly in the filters, thank you for the tip (now that I have the answer, I was also able to find it in the documentation) !
I tried the same syntax in the widget, but it does not seem to work the same way. Is there also a specic syntax that you are aware of that work in this case ?

<$link tiddler=<<org>>><$view tiddler=<<org>> field=title/></$link>
Reply all
Reply to author
Forward
0 new messages