I must have an incomplete understanding of TW, I wrote a macro to make a drop-down section using reveal and qualify, but qualify returns the same value when used multiple times in the same tiddler, making all the sections expand and close together rather than individually. Am I using it wrong?
My macro, for reference (a modification of one of the ToC macros):
\define collapse(spoiler, content)
\whitespace trim
<$let collapse-state=<<qualify "$:/tavi-vi/state/collapse">>>
<$reveal type="nomatch" stateTitle=<<collapse-state>> text="open">
<$button setTitle=<<collapse-state>> setTo="open" class="tc-btn-invisible">
{{$:/core/images/right-arrow}}
<span>$spoiler$</span>
</$button>
</$reveal>
<$reveal type="match" stateTitle=<<collapse-state>> text="open">
<$button setTitle=<<collapse-state>> setTo="close" class="tc-btn-invisible">
{{$:/core/images/down-arrow}}
<span>$spoiler$</span>
</$button>
</$reveal>
<$reveal type="match" stateTitle=<<collapse-state>> text="open">
<div>$content$</div>
</$reveal>
</$let>
\end