Hi Rich,
There is an example at tiddlywiki.com:
http://tiddlywiki.com/#WidgetMessage%3A%20tm-new-tiddler, which shows the
basics.
So if you modify it a little bit, like so:
<$button>
<$action-sendmessage $message="tm-new-tiddler" title="This is newly created
tiddler" tags={{!!tags}} text=<<now "Today is DDth, MMM YYYY">>/>
New Tiddler
^^^^^^^^^^^
get the tags from the current tiddler.
</$button>
You get the basic functionality, but it's not convenient, because it's not
in the toolbar. _and_ You need to remove my description text :)
A similar thing can be done with:
http://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FButtons%2Fnew-journal-here
If you overwrite it (as a workaround) with this:
\define journalButtonTags()
[[$(currentTiddlerTag)$]] $(journalTags)$
\end
\define journalButton()
<$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:
/language/Buttons/NewJournalHere/Caption}} class=<<tv-config-toolbar-class
>>>
<$action-sendmessage $message="tm-new-tiddler" title=<<now
"$(journalTitleTemplate)$">> tags=<<journalButtonTags>>/>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/core/images/new-journal-button}}
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"><$text text={{$:/language/Buttons/NewJournalHere/
Caption}}/></span>
</$list>
</$button>
\end
<$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}>
<$set name="journalTags" value={{!!tags}}>
<-- see {{!tags}} .... remove this text!
<$set name="currentTiddlerTag" value=<<currentTiddler>>>
<-- if you don't want the current tiddler tag, just set value to
"" ..... remove this text
<<journalButton>>
</$set></$set></$set>
This will replace the "new journal here" button, with your custom version.
.... If you want to create your own toolbar, the setup will be a bit
trickier ... but this should be a starting workaround.
!! Be sure, to remove my comments from the above code snippet !!
have fun!
mario
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/e75d82c6-0e99-4be9-835f-1ba58f5aa43f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.