For anyone looking to create a heading delimited list like what I've
outlined here that you can reorder, this is the working version:
<$list filter="[tag[todo]sort[title]each[category]]">
<div class="series-header"><$view field='category'/></div>
<$set name="category" value="""<$view field='category'/>""">
<br>
<<list-tagged-draggable tag:"todo"
subFilter=field:category{!!category} >>
</$set>
</$list>
notice the field:fieldname{!!fieldvalue} is the syntax for filtering
something by the value of a tiddler's field.
Thanks for pushing me along Mark.
On Friday, February 21, 2020 at 10:44:27 AM UTC-6, T. E. Sanders wrote:
>
> Yes, that does pull up the todo list with the field category, so at least
> I know the subFilters aren't broken :)
>
> What I'm trying to do though is like this:
>
> tagged: todo
>
> field: category with values like "today" or "next week" etc. It's a "type"
> of todo.
>
> Looping over todos, then using the category as a heading over "types" of
> todos. The list looks like:
>
> today:
> -- make a filter
> -- don't lose my mind
>
> next week
> -- use my todo list
> -- do stuff
>
>
> I got this to work with a regular list within a list and it looked like
> the above. I wanted to do it with the draggable list as the inner list
> instead. Which it should be able to do with a subfilter.
>
> The subfilter needs to filter the current tiddler (which I think the
> draggable macro already does) against the value of the field "category."
> I was sure something like field[category]has[today] would work, but
> something ain't right.
>
> On Friday, February 21, 2020 at 10:30:20 AM UTC-6, Mark S. wrote:
>>
>> If you're just trying to make a list of things tagged "todo" that also
>> have a category field, then this seems to do it:
>>
>> <<list-tagged-draggable tag:"todo" subFilter:"has[category]" >>
>>
>>
>>
>> On Friday, February 21, 2020 at 8:23:59 AM UTC-8, T. E. Sanders wrote:
>>>
>>> tried <<list-tagged-draggable tag:"todo"
>>> subFilter:"[field[category]has{!!category}]" >> but got the error which I
>>> think is because this is a "sub filter" that gets concatenated.
>>> so tried <<list-tagged-draggable tag:"todo"
>>> subFilter:"field[category]has{!!category}" >>. without it. No error, but
>>> still nothing returned.
>>> I feel like I'm close the the magic syntax though.
>>>
>>> On Friday, February 21, 2020 at 10:20:02 AM UTC-6, Mark S. wrote:
>>>>
>>>> Sadly it means I need to increase the zoom on my screen. All those
>>>> braces and brackets running together.
>>>>
>>>> Thanks!
>>>>
>>>> On Friday, February 21, 2020 at 8:11:12 AM UTC-8, Eric Shulman wrote:
>>>>>
>>>>>
>>>>> You left an extra "[" in your reply. I'm sure it was just an editing
>>>>> oops!.... it should read:
>>>>> [field{!!category}]
>>>>>
>>>>>
>>>>>
--
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/fd9a2694-d12e-4482-bcdb-f7ea0c8bef8d%40googlegroups.com.