Re: [tw] Re: Dynamic filter with all option

2015-05-17 Thread Brian Gates
Thanks again, that should do the trick. I ended up promoting the fields to tags in any event. On Sun, May 17, 2015 at 12:25 AM, Eric Shulman elsdes...@gmail.com wrote: errata: I left out the outer square brackets on the filter=... bits: it should have been this: $reveal type=match text=All

Re: [tw] Re: Dynamic filter with all option

2015-05-17 Thread Brian Gates
Ok one more crazy question. If I wanted checkboxes to show/hide spells of certain levels 1-9, is there anything I could do there? Level exists as tag and field. Would love to be able to sort across levels also.  So, show spells level 1,2, and 3 sorted by name. On Sun, May 17, 2015 at

[tw] Re: Dynamic filter with all option

2015-05-17 Thread Jed Carty
The most straight forward way is to have a reveal widget that shows the list of everything when 'all' is selected, and shows the list for the specific tag when any other option is selected. You may also be able to make a macro that returns tag[SomeSchool] when the field isn't 'all' and returns

Re: [tw] Re: Dynamic filter with all option

2015-05-17 Thread Eric Shulman
On Saturday, May 16, 2015 at 10:03:42 PM UTC-7, Brian Gates wrote: Right, but if I wanted to filter by a Spell field school, and I wanted an all option, what might I do? I don't have the same luxury of necessarily specifying Spell as the tag, I have to fill in something for the filter.

Re: [tw] Re: Dynamic filter with all option

2015-05-17 Thread Eric Shulman
errata: I left out the outer square brackets on the filter=... bits: it should have been this: $reveal type=match text=All state=!!school_filter $list filter=[has[school]] ... /$list /$reveal $reveal type=nomatch text=All state=!!school_filter $list filter=[school{!!school_filter}]

Re: [tw] Re: Dynamic filter with all option

2015-05-16 Thread Brian Gates
Am I correct in assuming there's no wildcard option for the parameter? Like, if I wanted to filter by a field instead, how might I accomplish this? On Sat, May 16, 2015 at 8:09 PM, Brian Gates brian.g.ga...@gmail.com wrote: That does it! Clever. Thank you :) On Sat, May 16, 2015 at 8:01 PM,

Re: [tw] Re: Dynamic filter with all option

2015-05-16 Thread Eric Shulman
On Saturday, May 16, 2015 at 8:14:20 PM UTC-7, Brian Gates wrote: Am I correct in assuming there's no wildcard option for the parameter? Like, if I wanted to filter by a field instead, how might I accomplish this? There's lots of filter operators

Re: [tw] Re: Dynamic filter with all option

2015-05-16 Thread Brian Gates
Right, but if I wanted to filter by a Spell field school, and I wanted an all option, what might I do? I don't have the same luxury of necessarily specifying Spell as the tag, I have to fill in something for the filter. e.g. school[Abjuration], might result from school{!!school_filter}, but how

[tw] Re: Dynamic filter with all option

2015-05-16 Thread Eric Shulman
On Saturday, May 16, 2015 at 7:11:17 PM UTC-7, Brian Gates wrote: I have spells tagged as belonging to certain classes. I want to create a display which list of spells with a dropdown to filter by a class (or not). div class='input' labelFilter by Class/label $select

Re: [tw] Re: Dynamic filter with all option

2015-05-16 Thread Brian Gates
That does it! Clever. Thank you :) On Sat, May 16, 2015 at 8:01 PM, Eric Shulman elsdes...@gmail.com wrote: On Saturday, May 16, 2015 at 7:11:17 PM UTC-7, Brian Gates wrote: I have spells tagged as belonging to certain classes. I want to create a display which list of spells with a