Well, not sure if you need this:
<$list filter="[tag[todo]each[category]get[category]]">
<<currentTiddler>><br/>
<<list-tagged-draggable tag:"todo" subFilter:"field:category<currentTiddler>"
>>
</$list>
In your version, the set widget doesn't appear to do anything.
In your version, field:category{!!category} will only work (I think) if you
have a tiddler with the same name as the category which also has a field
with the tiddler name in the category. Perhaps that is true with your data.
Something to consider.
Good going!
On Friday, February 21, 2020 at 9:18:47 AM UTC-8, T. E. Sanders wrote:
>
> 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/177c633b-3224-49e7-aeb0-e3f52e6c7681%40googlegroups.com.