How to export all open tiddlers by a button in the menu?

Hello TW-Community

there is a nice function in the more section available to export all tiddlers.
But I want to export only the open tiddlers not all.Looking here I found $:/core/ui/SideBar/Open but I was able to combine it with tm-download-file and a button in the main menu.

This was my starting point

<$button> export selected tiddlers
	<$action-sendmessage $message="tm-download-file"
		$param="$:/core/templates/exporters/JsonFile"
		exportFilter="$:/core/ui/SideBar/Open"
		filename="tiddlers.json"/>
</$button>

Thank you for any support
Stefan

1 Like

The tiddlers currently displayed in the StoryRiver are tracked by the TWCore in the list field of the $:/StoryList tiddler.

To export only those tiddlers, you can use

exportFilter={{$:/StoryList!!list}}

enjoy,
-e

1 Like