TW-Tones,

I made a third attempt and IT WORKED! Thank you, thank you so much!

Now my files look like this:

$:/core/ui/Actions/new-journal 
<https://www.google.com/url?q=https%3A%2F%2Ftiddlywiki.com%2F%23%2524%253A%252Fcore%252Fui%252FActions%252Fnew-journal&sa=D&sntz=1&usg=AFQjCNFNed9xwgHcYvPbBGHdfPefX6xovQ>

<$vars journalTitleTemplate={{$:/config/NewJournal/Title}} 
journalTags={{$:/config/NewJournal/Tags!!tags}} 
journalText={{$:/config/NewJournal/Text}}>
<$wikify name="journalTitle" text="""<$macrocall $name="now" 
format=<<journalTitleTemplate>>/>""">
<$reveal type="nomatch" state=<<journalTitle>> text="">
<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> 
tags=<<journalTags>> journal-date=<<now "YYYY0MM0DD0hh0mm0ss0XXX">> 
text={{{ [<journalTitle>get[]] }}}/>
</$reveal>
<$reveal type="match" state=<<journalTitle>> text="">
<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> 
tags=<<journalTags>> journal-date=<<now "YYYY0MM0DD0hh0mm0ss0XXX">> 
text=<<journalText>>/>
</$reveal>
</$wikify>
</$vars>

$:/core/ui/Buttons/new-journal-here 
<https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FButtons%2Fnew-journal-here>

\whitespace trim
\define journalButtonTags()
[[$(currentTiddlerTag)$]] $(journalTags)$
\end
\define journalButton()
<$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} 
aria-label={{$:/language/Buttons/NewJournalHere/Caption}} 
class=<<tv-config-toolbar-class>>>
<$wikify name="journalTitle" text="""<$macrocall $name="now" 
format=<<journalTitleTemplate>>/>""">
<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> 
tags=<<journalButtonTags>> journal-date=<<now "YYYY0MM0DD0hh0mm0ss0XXX">>/>
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
{{$:/core/images/new-journal-button}}
</$list>
<$list filter="[<tv-config-toolbar-text>match[yes]]">
<span class="tc-btn-text">
<$text text={{$:/language/Buttons/NewJournalHere/Caption}}/>
</span> 
</$list>
</$wikify>
</$button>
\end
<$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}>
<$set name="journalTags" value={{$:/config/NewJournal/Tags!!tags}}>
<$set name="currentTiddlerTag" value=<<currentTiddler>>>
<<journalButton>>
</$set>
</$set>
</$set>
On Tuesday, September 22, 2020 at 3:36:34 PM UTC+8 Sapphireslinger wrote:

> TW Tones,
>
> I'm using Quinoid on my smartphone, but to install things on my 
> tiddlywiki, I copy the tiddlywiki file to my microSD, which I take out of 
> my phone and plug in to the desktop computer. I open the file with 
> firefox/timini. 
>
> FIRST ATTEMPT
>
> I dragged the your journal-date.json into my tiddlywiki. After hitting 
> "import", all I got was a tiddler named Untitled and all it contained was 
> the link: 
> https://docs.google.com/viewer?a=v&pid=forums&srcid=MTEyNjM4NzE3NzI3NzEyNTIyMDMBMDIwMDA4NzE2NDA4NTU3MzE3NDkBYW9HVUd2dTJCUUFKATAuMQEBdjI
>
> So I went to the link, copied the contents, pasted them into a new 
> tiddler, titled it "TW tones - new journal button", no tags, and saved it 
> as a json tiddler. Saved my tiddlywiki, closed and reopened it just to make 
> sure. 
>
> Nothing new happened when I clicked on any journal buttons :(
>
> SECOND ATTEMPT
>
> Then I tried pasting the contents of the link directly into the two files 
> you mentioned, in the empty space at the bottom of the code they contained.
>
>    1. $:/core/ui/Actions/new-journal 
>    
> <https://www.google.com/url?q=https%3A%2F%2Ftiddlywiki.com%2F%23%2524%253A%252Fcore%252Fui%252FActions%252Fnew-journal&sa=D&sntz=1&usg=AFQjCNFNed9xwgHcYvPbBGHdfPefX6xovQ>
>    2. $:/core/ui/Buttons/new-journal-here 
>    <https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FButtons%2Fnew-journal-here>
>
> So (1) $:/core/ui/Actions/new-journal 
> <https://www.google.com/url?q=https%3A%2F%2Ftiddlywiki.com%2F%23%2524%253A%252Fcore%252Fui%252FActions%252Fnew-journal&sa=D&sntz=1&usg=AFQjCNFNed9xwgHcYvPbBGHdfPefX6xovQ>
>  
> looked like this:
>
> <$vars journalTitleTemplate={{$:/config/NewJournal/Title}} 
> journalTags={{$:/config/NewJournal/Tags!!tags}} 
> journalText={{$:/config/NewJournal/Text}}>
> <$wikify name="journalTitle" text="""<$macrocall $name="now" 
> format=<<journalTitleTemplate>>/>""">
> <$reveal type="nomatch" state=<<journalTitle>> text="">
> <$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> 
> tags=<<journalTags>> text={{{ [<journalTitle>get[]] }}}/>
> </$reveal>
> <$reveal type="match" state=<<journalTitle>> text="">
> <$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> 
> tags=<<journalTags>> text=<<journalText>>/>
> </$reveal>
> </$wikify>
> </$vars>
> [{"created":"20200609104906227","text":"Adds the journal-date field to new 
> journals be they new here or from the Page 
> Controls\n\n","title":"$:/PSaT/with-Journal-Date","tags":"","modified":"20200610031648548","description":"Modify
>  
> core behaviour to New Journals With Journal-Date 
> field","rating":"5","package-filter":"[all[]prefix[$:/PSaT/with-Journal-Date]]
>  
> [[$:/core/ui/Actions/new-journal]] 
> [[$:/core/ui/Buttons/new-journal-here]]","icon":"$:/core/images/new-journal-button"},{"created":"20200508083445369","text":"<$vars
>  
> journalTitleTemplate={{$:/config/NewJournal/Title}} 
> journalTags={{$:/config/NewJournal/Tags!!tags}} 
> journalText={{$:/config/NewJournal/Text}}>\n<$wikify name=\"journalTitle\" 
> text=\"\"\"<$macrocall $name=\"now\" 
> format=<<journalTitleTemplate>>/>\"\"\">\n<$reveal type=\"nomatch\" 
> state=<<journalTitle>> text=\"\">\n<$action-sendmessage 
> $message=\"tm-new-tiddler\" title=<<journalTitle>> tags=<<journalTags>> 
> text={{{ [<journalTitle>get[]] }}}  journal-date=<<now 
> \"YYYY0MM0DD0hh0mm0ss000\">>/>\n</$reveal>\n<$reveal type=\"match\" 
> state=<<journalTitle>> text=\"\">\n<$action-sendmessage 
> $message=\"tm-new-tiddler\" title=<<journalTitle>> tags=<<journalTags>> 
> text=<<journalText>>  journal-date=<<now 
> \"YYYY0MM0DD0hh0mm0ss000\">>/>\n</$reveal>\n</$wikify>\n</$vars>\n","title":"$:/core/ui/Actions/new-journal","tags":"$:/tags/Actions","modifier":"Quick
>  
> Config","modified":"20200626001201202","description":"create a new journal 
> tiddler","creator":"Quick Config"},{"text":"\\whitespace trim\n\\define 
> journalButtonTags()\n[[$(currentTiddlerTag)$]] 
> $(journalTags)$\n\\end\n\\define journalButton()\n<$button 
> tooltip={{$:/language/Buttons/NewJournalHere/Hint}} 
> aria-label={{$:/language/Buttons/NewJournalHere/Caption}} 
> class=<<tv-config-toolbar-class>>>\n<$wikify name=\"journalTitle\" 
> text=\"\"\"<$macrocall $name=\"now\" 
> format=<<journalTitleTemplate>>/>\"\"\">\n<$action-sendmessage 
> $message=\"tm-new-tiddler\" title=<<journalTitle>> 
> tags=<<journalButtonTags>>  journal-date=<<now 
> \"YYYY0MM0DD0hh0mm0ss000\">>/>\n<$list 
> filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-journal-button}}\n</$list>\n<$list
>  
> filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span 
> class=\"tc-btn-text\">\n<$text 
> text={{$:/language/Buttons/NewJournalHere/Caption}}/>\n</span>\n</$list>\n</$wikify>\n</$button>\n\\end\n<$set
>  
> name=\"journalTitleTemplate\" value={{$:/config/NewJournal/Title}}>\n<$set 
> name=\"journalTags\" value={{$:/config/NewJournal/Tags!!tags}}>\n<$set 
> name=\"currentTiddlerTag\" 
> value=<<currentTiddler>>>\n<<journalButton>>\n</$set>\n</$set>\n</$set>\n","title":"$:/core/ui/Buttons/new-journal-here","tags":"$:/tags/ViewToolbar","modifier":"Quick
>  
> Config","modified":"20200508083846432","description":"{{$:/language/Buttons/NewJournalHere/Hint}}","creator":"Quick
>  
> Config","created":"20200508083825834","caption":"{{$:/core/images/new-journal-button}}
>  
> {{$:/language/Buttons/NewJournalHere/Caption}}"}]
>
> And (2) $:/core/ui/Buttons/new-journal-here 
> <https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FButtons%2Fnew-journal-here> 
> looked like this:
>
> \whitespace trim
> \define journalButtonTags()
> [[$(currentTiddlerTag)$]] $(journalTags)$
> \end
> \define journalButton()
> <$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} 
> aria-label={{$:/language/Buttons/NewJournalHere/Caption}} 
> class=<<tv-config-toolbar-class>>>
> <$wikify name="journalTitle" text="""<$macrocall $name="now" 
> format=<<journalTitleTemplate>>/>""">
> <$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> 
> tags=<<journalButtonTags>>/>
> <$list filter="[<tv-config-toolbar-icons>match[yes]]">
> {{$:/core/images/new-journal-button}}
> </$list>
> <$list filter="[<tv-config-toolbar-text>match[yes]]">
> <span class="tc-btn-text">
> <$text text={{$:/language/Buttons/NewJournalHere/Caption}}/>
> </span>
> </$list>
> </$wikify>
> </$button>
> \end
> <$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}>
> <$set name="journalTags" value={{$:/config/NewJournal/Tags!!tags}}>
> <$set name="currentTiddlerTag" value=<<currentTiddler>>>
> <<journalButton>>
> </$set>
> </$set>
> </$set>
> [{"created":"20200609104906227","text":"Adds the journal-date field to new 
> journals be they new here or from the Page 
> Controls\n\n","title":"$:/PSaT/with-Journal-Date","tags":"","modified":"20200610031648548","description":"Modify
>  
> core behaviour to New Journals With Journal-Date 
> field","rating":"5","package-filter":"[all[]prefix[$:/PSaT/with-Journal-Date]]
>  
> [[$:/core/ui/Actions/new-journal]] 
> [[$:/core/ui/Buttons/new-journal-here]]","icon":"$:/core/images/new-journal-button"},{"created":"20200508083445369","text":"<$vars
>  
> journalTitleTemplate={{$:/config/NewJournal/Title}} 
> journalTags={{$:/config/NewJournal/Tags!!tags}} 
> journalText={{$:/config/NewJournal/Text}}>\n<$wikify name=\"journalTitle\" 
> text=\"\"\"<$macrocall $name=\"now\" 
> format=<<journalTitleTemplate>>/>\"\"\">\n<$reveal type=\"nomatch\" 
> state=<<journalTitle>> text=\"\">\n<$action-sendmessage 
> $message=\"tm-new-tiddler\" title=<<journalTitle>> tags=<<journalTags>> 
> text={{{ [<journalTitle>get[]] }}}  journal-date=<<now 
> \"YYYY0MM0DD0hh0mm0ss000\">>/>\n</$reveal>\n<$reveal type=\"match\" 
> state=<<journalTitle>> text=\"\">\n<$action-sendmessage 
> $message=\"tm-new-tiddler\" title=<<journalTitle>> tags=<<journalTags>> 
> text=<<journalText>>  journal-date=<<now 
> \"YYYY0MM0DD0hh0mm0ss000\">>/>\n</$reveal>\n</$wikify>\n</$vars>\n","title":"$:/core/ui/Actions/new-journal","tags":"$:/tags/Actions","modifier":"Quick
>  
> Config","modified":"20200626001201202","description":"create a new journal 
> tiddler","creator":"Quick Config"},{"text":"\\whitespace trim\n\\define 
> journalButtonTags()\n[[$(currentTiddlerTag)$]] 
> $(journalTags)$\n\\end\n\\define journalButton()\n<$button 
> tooltip={{$:/language/Buttons/NewJournalHere/Hint}} 
> aria-label={{$:/language/Buttons/NewJournalHere/Caption}} 
> class=<<tv-config-toolbar-class>>>\n<$wikify name=\"journalTitle\" 
> text=\"\"\"<$macrocall $name=\"now\" 
> format=<<journalTitleTemplate>>/>\"\"\">\n<$action-sendmessage 
> $message=\"tm-new-tiddler\" title=<<journalTitle>> 
> tags=<<journalButtonTags>>  journal-date=<<now 
> \"YYYY0MM0DD0hh0mm0ss000\">>/>\n<$list 
> filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-journal-button}}\n</$list>\n<$list
>  
> filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span 
> class=\"tc-btn-text\">\n<$text 
> text={{$:/language/Buttons/NewJournalHere/Caption}}/>\n</span>\n</$list>\n</$wikify>\n</$button>\n\\end\n<$set
>  
> name=\"journalTitleTemplate\" value={{$:/config/NewJournal/Title}}>\n<$set 
> name=\"journalTags\" value={{$:/config/NewJournal/Tags!!tags}}>\n<$set 
> name=\"currentTiddlerTag\" 
> value=<<currentTiddler>>>\n<<journalButton>>\n</$set>\n</$set>\n</$set>\n","title":"$:/core/ui/Buttons/new-journal-here","tags":"$:/tags/ViewToolbar","modifier":"Quick
>  
> Config","modified":"20200508083846432","description":"{{$:/language/Buttons/NewJournalHere/Hint}}","creator":"Quick
>  
> Config","created":"20200508083825834","caption":"{{$:/core/images/new-journal-button}}
>  
> {{$:/language/Buttons/NewJournalHere/Caption}}"}]
>
> And now one of my "new journal buttons" does not appear to work at all. 
> (So sorry, can not remember where and when I got that particular new 
> journal button. But it's not the one that automatically tags my new journal 
> tiddlers with month and year etc that I've been using for awhile.)
>
> Not sure what to try next.
>
>
> On Sunday, September 20, 2020 at 12:47:34 PM UTC+8 strikke...@gmail.com 
> wrote:
>
>> Thank you TW Tones,
>>
>> Works for me now.
>>
>> Birthe
>>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/10b0e5c3-3de4-431c-9f65-3d174c6e096cn%40googlegroups.com.

Reply via email to