Thanks Eric! that did the trick.

On Tuesday, 13 July 2021 at 03:03:39 UTC+1 Eric Shulman wrote:

> On Monday, July 12, 2021 at 11:18:04 AM UTC-7 [email protected] wrote:
>
>> I would like to create a link to create a tiddler using a template if 
>> that tiddler does not exist.
>>
>
> Try this: 
> \define AList() [[Full Edition]] [[Empty Edition]] [[Blog Edition]] [[Non 
> Existing Edition]]
> <$list filter=<<AList>>>
>    <$list filter="[<currentTiddler>is[tiddler]]"> <$link /> </$list>
>    <$list filter="[<currentTiddler>is[missing]]">
>       <$button class="tc-btn-invisible tc-tiddlylink"> <<currentTiddler>>
>          <$action-createtiddler $basetitle=<<currentTiddler>> 
> $template="NewEditionTemplate" aa="new field aa" bb="new field bb" />
>          <$action-navigate to=<<currentTiddler>> />
>       </$button>
>    </$list>
> </$list>
>
> Notes:
> * The first inner $list widget uses the "shorthand" <$link /> syntax to 
> link to the currentTiddler
> * The second inner $list widget displays a $button that looks like a link 
> that
>   A) creates the missing tiddler using NewEditionTemplate (if defined), as 
> well as a few other fields defined "inline"
>   B) navigates to the newly created tiddler
>
> enjoy,
> -e
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/08b1e896-c30f-4d5e-96c0-76cff58b2fe1n%40googlegroups.com.

Reply via email to