Is it possible to configure "$:/ControlPanel/Default tiddlers" to work as folded by default?

I know I can make a list of tiddlers on “$:/ControlPanel/Default tiddlers” that will open as default on my TiddlyWiki page.

However, I’d like to configure some of them as folded by default. Is it possible? Is there any way of creating this list in a way that the tiddlers will be folded?

The state-handler for the folding events works like this:

https://tiddlywiki.com/#WidgetMessage%3A%20tm-fold-tiddler

So you would simply add a startup action to add the needed tiddlers, setting their text-field to “hide”.

Startup Actions: https://tiddlywiki.com/#StartupActions

I got the startup part… But I still didn’t manage to make the tm-fold-tiddler work here. I’m probably missing something about how to send messages… In case it was a button, how would it be the logic?

<$button> <$action-sendmessage text-field="hide"/> Hide </$button>

I know this one doesn’t work, I’ve tried different ways of doing it but I didn’t get it to work.

Try a startup action along these lines:

<$action-setfield $tiddler="$:/state/folded/HelloThere" text="hide"/>

where HelloThere is the tiddler you want folded.

1 Like

Thanks! the startup action with this line worked fine for me…

I’ve just realized I got a new problem though… Even though I can unfold the folded Tiddler by clicking on it, when I click a link that goes to this Tiddler it remains folded. In my case I have the following page:

Is there any way of reverting that? Just so if I try to open a Tiddler that’s folded from an internal TiddlyWiki link it unfolds the Tiddler?