$:/ControlPanel settings are stored in a variety of different tiddlers. Many of these (but not all) start with the $:/config/
prefix. However, this largely depends upon when those settings were first implemented, and how the TWCore system expects to interact with them.
For example:
In the $:/ControlPanel > Info > Basics tab, the label for each setting is a link to where that setting is stored, and some exceptions to the $:/config/
prefix include:
$:/SiteTitle
$:/SiteSubtitle
$:/status/UserName
$:/DefaultTiddlers
$:/language/DefaultNewTiddlerTitle
In contrast, the location of the various cascade filters defined in the $:/ControlPanel > Info > Advanced > Cascades tab
are actually determined by the use of tags, such as $:/tags/EditTemplateBodyFilter
, $:/tags/FieldEditorFilter
, etc.
The currently selected palette is set in the $:/ControlPanel > Appearance > Palette tab, and is stored in $:/palette
, but the actual color palettes are stored in tiddlers starting with the $:/palettes/
prefix
The $:/ControlPanel > Appearance > Theme Tweaks settings are stored in tiddlers starting with
$:/themes/tiddlywiki/vanilla/options/
, $:/themes/tiddlywiki/vanilla/settings/
, or $:/themes/tiddlywiki/vanilla/metrics/
,
In addition to this variety of locations used by the TWCore $:/ControlPanel settings, plugins can also add their own control panel tabs, and those settings can be stored wherever the plugin author has chosen to store them.
Thus, for your purposes (exporting your commonly used settings), you will first need to define a filter that lists all the relevant tiddlers. For example, the tiddler “MySettings” could contain a filter definition like:
[prefix[$:/config]]
[[$:/palette]]
[prefix[$:/palettes/]]
[prefix[$:/themes/tiddlywiki/vanilla/]]
[tag[$:/tags/EditTemplateBodyFilter]]
[tag[$:/tags/FieldEditorFilter]]
...etc
and then you would use that filter as the exportFilter
parameter in a tm-download-file
message. Something like this:
<$action-sendmessage $message="tm-download-file"
$param="$:/core/templates/exporters/JsonFile"
exportFilter={{MySettings}} filename="settings.json" />
-e