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/3a4374f7-4b3e-45ac-b4c9-2442921d75f5%40googlegroups.com.