Captivating Stroll theme issues with folding tiddlers

Hi,

While discussing the Eberron theme, @CasperBooWisdom advice on how to get something similar by combining three plugins and it worked pretty fine. But while looking again for such topic I discovered the Captivating Stroll theme, which seems like a modernized option to start a new dual storyriver wiki.

The issue is that tiddler folding only works in the right column and doesn’t work at all in the left one, and I didn’t find the source code repository to report the problem, but I think this is a good place also. Any advice on how to fix this?

TIA and cheers,

1 Like

I stacked that edition together. I have not noticed the problem so I am glad you report it. Unfortunately at this point I have no idea how to fix it.

Thanks for your answer and sharing your edition… Umm wondering if the author of the original Stroll or other people with more experience could point us to the solution. Or ir @Xrizzy could share the procedure used to get this edition from vanilla TW to debug where the error is produced.

The folded state for the current tiddler is set in $:/core/ui/ViewTemplate

Then all view template items are transcluded using;

<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!is[draft]]" variable="listItem">
<$transclude tiddler=<<listItem>>/>
</$list>

So this indicates each element in the viewTemplate has to handle its own fold status;

See $:/core/ui/ViewTemplate/body and how it uses reveal to display or not display if folded.

Perhaps there is a separate viewtemplate for each column? The second of which does not set or honor the fold state.

So it seems that tm-fold-tiddler is not sent up the stack by the widget navigator. This is true even in the example for navigator at tiddlywiki.com .

But folding works in Stroll, so David must have found a work around.

One workaround, which is probably not the right way, is to edit:

$:/core/ui/Buttons/fold

After the first <$action-sendmessage...> widget paste in

<$action-setfield $tiddler=<<folded-state>> $field="text" $value="hide"/>

and after the second <$action-sendmessage widget past in

<$action-setfield $tiddler=<<folded-state>> $field="text" $value="show"/>

This will allow the main button to fold/unfold again.

Maybe @DaveGifford will have some recollection of this problem and it’s resolution.