LaCava Research Wiki

Initiated September 2017

WidgetMessage: tm-fold-other-tiddlers

24th April 2016 at 7:33pm

The tm-fold-other-tiddlers message folds all tiddlers in the current story list, except the one specified in the param parameter. It does so by setting the text of a state tiddler to either "show" or "hide", according to the fold state.

NameDescription
paramTitle of the tiddler that should be ignored by the fold operation.
foldedStatePrefixPrefix for the state tiddler in which the fold state is stored.

The core uses a foldStatePrefix of '$:/state/folded/' to store the fold states for the default story view.

The state tiddlers title is computed as 'foldStatePrefix + TiddlerTitle'. If the foldStatePrefix is not set, it will overwrite the text of the tiddler(s) itself, resulting in data loss.

The tm-fold-other-tiddlers message is usually generated with the ButtonWidget and is handled by the surrounding NavigatorWidget.