I am trying to create a new-journal-here button embedded in my tiddler 
"Class Log - Jane Doe". I want it to create a tiddler titled 
"year.month.day hour Class Log- Jane Doe" which is tagged with [bible study 
session] and [Class Log - Jane Doe]

In other words:
* Title: "date currentTiddler"
* Tags: [bible study session] [currentTiddler]

I thought all I had to do was clone $:/core/ui/Buttons/new-journal-here 
button, give it the new name $:/core/ui/Buttons/new-class-log-entry-here, 
add [bible study session] to the tags, and embed it in any "Class Log - 
Jane Doe" like tiddlers like so: {{Class Log- Jane 
Doe||$:/core/ui/Buttons/new-class-log-entry-here}}

Problem:
Clicking that button in the Class - Jane Doe tiddler results in a tiddler 
with the correct tags, but the title only has a date stamp, not "date-stamp 
currentTiddler".

\whitespace trim
\define journalButtonTags()
[[$(currentTiddlerTag)$]] [[bible study session]]
\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>

-- 
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/415bdc3e-9db2-437b-810e-4ee7376169fen%40googlegroups.com.

Reply via email to