mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-19 10:49:43 +00:00
35 lines
810 B
Plaintext
35 lines
810 B
Plaintext
|
title: Message/tm-import-tiddlers/CustomTitle
|
||
|
description: tm-import-tiddlers message can import to a tiddler with a custom title
|
||
|
type: text/vnd.tiddlywiki-multiple
|
||
|
tags: [[$:/tags/wiki-test-spec]]
|
||
|
|
||
|
title: Output
|
||
|
|
||
|
text: <$text text={{MyCustomTitle}}/>
|
||
|
plugin-type: <$text text={{MyCustomTitle!!plugin-type}}/>
|
||
|
~$:/StoryList: <$text text={{$:/StoryList!!list}}/>
|
||
|
+
|
||
|
title: Actions
|
||
|
|
||
|
<$navigator story="$:/StoryList">
|
||
|
<$action-sendmessage
|
||
|
$message="tm-import-tiddlers"
|
||
|
$param='[{"title": "Elephants"}, {"title": "Eagles"}]'
|
||
|
importTitle=MyCustomTitle/>
|
||
|
</$navigator>
|
||
|
|
||
|
+
|
||
|
title: ExpectedResult
|
||
|
|
||
|
<p>text: {
|
||
|
"tiddlers": {
|
||
|
"Elephants": {
|
||
|
"title": "Elephants"
|
||
|
},
|
||
|
"Eagles": {
|
||
|
"title": "Eagles"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
plugin-type: import
|
||
|
$:/StoryList: MyCustomTitle</p>
|