I lied - I couldn't wait to try.. @Eric I see your macro does not change 
the sort order.  It looks like it's going to work great. Thanks again.

On Wednesday, August 12, 2020 at 11:01:30 PM UTC-4 amreus wrote:

> Thanks Eric.  I should have also mentioned I want to keep the birth order 
> of the siblings based on a `birt-date` field.  I won't have a chance to try 
> any of this until late tomorrow.
>
>
> On Wednesday, August 12, 2020 at 10:30:36 PM UTC-4 Eric Shulman wrote:
>
>> On Wednesday, August 12, 2020 at 5:48:17 PM UTC-7, amreus wrote:
>>>
>>> I have a little macro that lists the siblings of a person tiddler. 
>>> Simplified, it looks like so:
>>> \define siblings()
>>> ''Siblings''
>>> <$list filter="[has[famc]field:famc{!!famc}]">
>>> <br><$link>{{!!caption}}</$link>
>>> </$list>
>>> \end
>>> This lists all tiddlers that have a matching `famc` field, including the 
>>> current tiddler.
>>> How can I make it not link to the current tiddler?  
>>> I want to list and link to the siblings, but only list the current 
>>> tiddler with no link.
>>>
>>
>> Try this:
>> \define siblings()
>> ''Siblings''
>> <$vars here=<<currentTiddler>>>
>>
>> <$list filter="[has[famc]field:famc{!!famc}]">
>>    <br>
>>
>>    <$list filter="[<currentTiddler>match<here>]">  {{!!caption}}         
>>        </$list>
>>    <$list filter="[<currentTiddler>!match<here>]"> <$link>{{!!caption}}</
>> $link> </$list>
>> </$list>
>> </$vars>
>> \end
>>  
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/82667c6c-f3cf-4451-913e-ad54ccc648d5n%40googlegroups.com.

Reply via email to