Hi tdymon,
Hi Eric,

The example Eric posted is good for the described usecase but there is a 
little problem: The <<now>> macros are evaluated, when the button is drawn. 
So if the date changes and you click the button, you'll get what is 
defined, but may be unexpected. 
If you show the button in a tiddler, there may be no big difference. But if 
the button is part of the sidebar, which isn't redrawn that often, it may 
cause confusion at around midnight :)

This does the same thing, but evaluates the now macros when you click the 
button: .. I did change day and month to min and sec .. to see the 
difference 

\define myNewJournal()
<$action-sendmessage $message="tm-new-tiddler"
   title=<<now "DEL-YYY0MM0DD">>
   tags="journal"

   text=""
   journal-type="fitness"
   journal-part="segment"

   min=<<now "0mm">>
   sec=<<now "0ss">>
/>
\end

<$button actions=<<myNewJournal>> >
New Tiddler
</$button>

Also see: http://tiddlywiki.com/#ActionWidgets

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/d16a11b6-c255-4092-adf5-3880bf4ffaec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to