I've been down this road. Consider whether you actually need a template. 
You could just add whatever additional fields/lists you need from 
tm-new-tiddler. You could
even iterate over the fields in your template tiddler and add them from 
there.


On Thursday, June 27, 2019 at 5:42:07 PM UTC-7, TonyM wrote:
>
> *A final issue to bulk create new tiddlers from CSV*
>
> *This works however it has the unpleasant need to open every tiddler for 
> edit, and demand I save each.*
>
> In the above solution rather than display the key value pairs, I have 
> added a action-sendmessage to create my new tiddlers
>
> <$action-sendmessage $message="tm-new-tiddler" 
> $param="$:/PSaT/WRRef/templates/objects/person" 
> title=<<person-tiddler>> 
> first-name=<<first-name>>
> surname=<<surname>> 
> person-role=<<person-role>>
> email-address=<<email-address>>
> import-region=<<import-region>> 
> tags="batch"
> />
> I am using tm-new-tiddler because unlike 
> ActionCreateTiddlerWidget
> it permits the use of a template 
> GitHub Issue raised here 
> <https://github.com/Jermolene/TiddlyWiki5/issues/4022>
>
> Then I invoke my each row for all csv rows by wrapping the invocation in a 
> button
>
> <$button>
> <$list filter="[{StaffListTest.csv}split[<eol>]removesuffix[,]]" 
> variable=input-row>
>   <$macrocall $name=each-row row=<<input-row>>/>
> </$list>
> Create tiddlers from Staff List
> </$button>
>
> Any idea how to;
>
>    - Use template tiddlers with  ActionCreateTiddlerWidget
>    - Create but not open new tiddlers with <$action-sendmessage 
>    $message="tm-new-tiddler"
>
> Regards
> Tony
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0281ffde-89e9-4aa6-938c-8dda7f745488%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to