Mark & Eric
Thanks SO much - your help is incredibly helpful. That has got me going -
this is SO powerful!!!
Simon
On Saturday, September 19, 2020 at 12:48:03 AM UTC-4 Eric Shulman wrote:
> On Friday, September 18, 2020 at 8:20:31 PM UTC-7, Simon wrote:
>
>> I'm trying to created a nested list - I'm using GSD5 and I want to get
>> all the top level projects and list their sub projects underneath. I
>> understand how that is setup in GSD I am struggling with the list.
>> Here is what I have so far:
>>
> <$list filter="[gsd_type[project]gsd_project[]]"> <===gets top level
> and works
> <$link to={{!!title}}><$view field="title"/></$link><br>
> <$list filter="[gsd_type[project]gsd_project[{{!!title}}]]">
> <===struggling here
> <$link to={{!!title}}><$view field="title"/></$link><br>
> </$list>
> </$list>
>
>
> Try this:
> <$list filter="[gsd_type[project]gsd_project[]]">
> <$link /><br>
> <$list filter="[gsd_type[project]gsd_project<currentTiddler>]">
> <$link /><br>
> </$list>
> </$list>
>
> Notes:
> 1) The $list widget sets the value of <<currentTiddler>> unless you use
> the variable="something" parameter.
> 2) By default, text for the $link widget will match the tiddler title
> specified in the to=... parameter,
> and the default value for the to="..."parameter is the
> <<currentTiddler>> value.
> Thus, <$link /> is all that is needed to link to the <<currentTiddler>>.
> 3) Within filter syntax, the brackets surrounding an operand vary
> depending upon the type of value being specified:
> use [...] for literal text, {...} for tiddler field or index
> references, and <...> for variable references.
> Thus, gsd_project[{{!!title}}] is incorrect, and would be properly
> written as gsd_project{!!title}
> and, because the outer $list has set the <<currentTiddler>> value, the
> filter syntax is gsd_project<currentTiddler>.
>
> enjoy,
> -e
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/d8a7e811-b5c4-492a-a979-98a648d21723n%40googlegroups.com.