It might not make much of a difference performance-wise, but in my "just in
case" mindset, I'd do something like this:
```
<$list filter=" [tag[Background]tag{!!title}] +[sort[]]"
counter="myCounter">
<$list filter="[<myCounter>!match[1]]"><hr></$list>
<h2><$link><$view field="title"/></$link></h2>
<$transclude mode="block" field="text"/>
</$list>
```
On Thursday, May 11, 2023 at 10:26:58 AM UTC-3 Scott Sauyet wrote:
> You can use the counter attribute of the list widget, like this:
>
> <$list filter=" [tag[Background]tag{!!title}] +[sort[]]"
> counter="myCounter">
> <h2><$link><$view field="title"/></$link></h2>
> <$transclude mode="block" field="text"/>
> <$list filter={{{ [<myCounter-last>!match[yes]] }}}><hr/></$list>
> </$list>
>
>
> On Wednesday, May 10, 2023 at 10:03:21 AM UTC-4 Ross Table wrote:
>
>> I am using something like this;
>>
>> <$list filter="[tag[Background]tag{!!title}]+[sort[]]">
>> <h2><$link><$view field="title"/></$link></h2>
>> <$transclude mode="block" field="text"/>
>> <hr>
>> </$list>
>>
>> but I don't like the extra hr that it puts on the bottom... Is there a
>> way I can test to see if its not the last item in the list and then hide
>> that using a reveal widget?
>>
>
--
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/3c2dfc59-9af9-46ae-a7e6-9eee125f3265n%40googlegroups.com.