[tw5] Re: Any idea how to collapse/expand section within a tiddler

This kind of crazy.

It is a set of expanding sections applied to a list filter.

It uses a checkbox with a field instead of a button.

I’m actually very confused as to why/how the checkbox field works with the state tiddler. Except that the qualify macro is applied to the checkbox field’s name.

<$set fieldName=<<qualify “showdit”>>>
<$list filter="[tag[Wiki Related]sort[title]] -[regexp:title[^Draft of.*]]">

.exheading [type="checkbox"]{display:none;}
<$checkbox field="showstate" checked="yes" unchecked="no">

{{$:/core/images/unfold-button}} <$transclude field="title" mode="inline"/><$link>[edit]

<$reveal state="!!showstate" type="match" text="yes"> <$transclude field="text" mode="block"/>

<$list filter="[tag[Game Projects]sort[title]] -[regexp:title[^Draft of.*]]">

.exheading [type="checkbox"]{display:none;}
<$checkbox field="showtest" checked="yes" unchecked="no">

{{$:/core/images/unfold-button}} <$transclude field="title" mode="inline"/><$link>[edit]

<$reveal state="!!showtest" type="match" text="yes"> <$transclude field="text" mode="block"/>