This was a fun little problem to solve. The solution I've come up with
isn't pretty, but it seems to work:

\define inner(fieldName)
<$set name="v" value={{!!$fieldName$}}>
<$list filter="[<v>regexp[^yes$]]" variable="x">
<$text text="""$fieldName$"""/>
</$list>
</$set>
\end

<$list filter="[<currentTiddler>fields[]sort[]]" variable="fieldName">
<$macrocall $name="inner" fieldName=<<fieldName>>/>
</$list>

The regexp is particularly egregious; it's needed because we don't have a
straightforward way to test a title for equality.

Best wishes

Jeremy.



On Thu, Apr 16, 2015 at 6:16 PM, Jed Carty <[email protected]> wrote:

> I have been trying to find a way to do that directly for a while and
> haven't been able to come up with anything. You can use how I made the
> options checkboxes work on this site
> <http://ooktech.com/jed/ExampleWikis/Version518Fun/>. Each checkbox puts
> the filter part associated with that box in a field when checked, and makes
> the field blank when unchecked, then to make the final filter you
> concatenate all of the filter strings together.
>
> It is a roundabout way to do it, but I am starting to doubt that there is
> a direct way with what is currently available.
>
> In the proud tradition of engineers everywhere: if you are given an
> impossible problem to solve, cheat.
>
> --
> 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 post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/3caa627a-d70f-49cc-9464-176004ef6d2e%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/3caa627a-d70f-49cc-9464-176004ef6d2e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAPKKYJaEQy0Sdgr%3DsULZr45UVch8Y5%3DD9uZCRW6K%2BjMutNeriw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to