Harris,
Great to hear. I assure you that investment in time will be empowering you
to solve future problems, however do not hesitate to ask again in the
forum, when baffled. The key thing I wanted you to find was
$message="tm-save-wiki", because I could not be sure I new the message name
correctly. With this you are empowered to make your own action that calls
the core action to save wiki.
Regards
Tony
On Monday, October 7, 2019 at 7:55:01 AM UTC+11, Harris wrote:
>
> Tony, your clue reassured me that I am in the right direction. I searched
> again and found $:/core/ui/Buttons/save-wiki
> It was listed under shadow tiddlers. In my last attempt I had only
> searched under "core" and "filter" in advanced search.
>
> I extracted the relevant code from $:/core/ui/Buttons/save-wiki and it
> works like a charm! :-)
>
> Thanks again
> Harris
>
> P.s.1 Embarrassed to say that I spent ~3 hours on the whole thing earlier
> today but in the 2nd attempt just now the solution came up very quickly. I
> think I was a bit muddled earlier today and not fully alert.
>
> p.s.2 code below in case it is useful to anybody else:
>
> <$navigator story="$:/StoryList" >
> <$action-sendmessage $message="tm-save-wiki"
> $param={{$:/config/SaveWikiButton/Template}}
> filename=<<site-title>>/>
> </$navigator>
>
>
> On Sunday, October 6, 2019 at 9:36:26 PM UTC+1, Harris wrote:
>>
>> Hi Tony,
>> Thanks for the clue. I had partially done such a search prior to posting
>> but gave up in the end.
>>
>> I had found $:/core/images/save-button but then got stuck and could not
>> find the callback linked to this button.
>>
>> I had also found but they didn't seem to give me the code for the action:
>>
>> - $:/core/save/all
>> - $:/core/modules/commands/save.js
>> - $:/core/modules/commands/savetiddlers.js
>>
>>
>> I will do another search.
>>
>> Thanks again.
>> Harris
>>
>>
>>
>> On Sunday, October 6, 2019 at 1:57:50 PM UTC+1, TonyM wrote:
>>>
>>> A quick clue. Full answer later. Find the save button with advanced
>>> search and find out how it does it.
>>>
>>> Fishing lesson
>>>
>>> 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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/dec602ca-4fe2-4af8-bab6-63e9fa45f6b3%40googlegroups.com.