Jon

When you transclude  {{$:/core/ui/Buttons/new-tiddler}} you are acutely 
Transcluding the whole button, change this to {{$:/core/images/new-button}}

   - Basically clicking on the button triggers both  
   $:/core/ui/Buttons/new-tiddler and  $message="tm-new-tiddler"
   - This highlights how a button widget acts somewhat like "on click"
   - ActionCreateTiddlerWidget can create tiddlers without navigating to 
   them (in fact you need to navigate to them) and has more control than  
    $message="tm-new-tiddler"
   
However why not use the new Journal here button? 
{{||$:/core/ui/Buttons/new-journal-here}} 
You can change the title format, default content and tags in Control Panel 
> info > Basics

   - Title of new journal tiddlers
   - Text for new journal tiddlers
   - Tags for new journal tiddlers
   
Regards
Tones
On Monday, 2 August 2021 at 05:19:25 UTC+10 Jon wrote:

> Hi Chris, 
>
> Thanks for that but I'm not sure how to incorporate it into the original - 
> I've played around with it but can't get it to work. Could you spell it out 
> for me?
>
> Thanks
> Jon
>
> On Sunday, 1 August 2021 at 16:57:16 UTC+1 clutterstack wrote:
>
>>
>> Hi Jon, if you don't want the draft, perhaps the action-createtiddler 
>> widget <https://tiddlywiki.com/#ActionCreateTiddlerWidget> is what 
>> you're looking for, rather than the tm-new-tiddler message?
>>
>> Best,
>> Chris
>> On Sunday, August 1, 2021 at 11:02:42 AM UTC-4 Jon wrote:
>>
>>> Hi,
>>>
>>> I have this to create a new tiddler from a button with the current date 
>>> as the title:
>>>
>>> \define newtags() [[log]]
>>> <$wikify name="Title" text="""<<now "0DD/0MM/YY">>""">
>>>
>>> <$button class="tc-btn-invisible">{{$:/core/ui/Buttons/new-tiddler}} 
>>>
>>> <$action-sendmessage $message="tm-new-tiddler" title=<<Title>> 
>>> tags=<<newtags>> text=<<newtext>> />
>>>    </$button>
>>>
>>> It works fine but it also creates an unwanted draft tiddler as well.
>>>
>>> Any ideas what's wrong with it?
>>>
>>> Regards
>>> Jon
>>>
>>

-- 
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/1694edb8-964f-4a72-b43f-f52f299ef8bfn%40googlegroups.com.

Reply via email to