Hi everyone
H La Vallee came up with an improvement to the Subsume plugin (The Subsume Plugin — Turn links into sliders!), so that it takes the caption field of a subsumed tiddler into account, and displays that in the details summary element rather than the tiddler title.
He (or maybe she? I don’t know what the H stands for, and don’t want to make assumptions) kindly gave me these snippets:
Here's my modified $:/plugins/giffmex/subsume/macro :
\define subsume(tid:"") <details><summary><$list filter="[[$tid$]has[caption]then{$tid$!!caption}else{$tid$!!title}]"><$text text=<<currentTiddler>>/></$list><$link to="$tid$"> * </$link></summary><span class="indent1"><$transclude tiddler="$tid$" field="text" mode="block"/></span></details>
and the corresponding $:/plugins/giffmex/subsume/macro/subsume-edit :
\define subsume-edit(tid:"") <details><summary><$list filter="[[$tid$]has[caption]then{$tid$!!caption}else{$tid$!!title}]"><$text text=<<currentTiddler>>/></$list> <$button class="tc-btn-invisible"><$action-sendmessage $message="tm-edit-tiddler" $param="$tid$" /> ^^{{$:/core/images/edit-button}}^^ </$button></summary><span class="indent1"><$transclude tiddler="$tid$" field="text" mode="block"/></span></details>
They work great, generally, but tiddler titles that end in !
break them. He wasn’t sure how to fix it, so he recommended asking here.
I do like the improvement of incorporating the caption field when there is one. Can anybody help with whatever little tweak it needs?
Thanks in advance for your help. Blessings, Dave