Hi Christian,
maybe something like the following does the trick?
\define actions()
<$action-sendmessage $message="tm-new-tiddler" tags=" [[JournalEntry]]
[[$(currentDateTime)$]] " />
\end
<$button class=<<tv-config-toolbar-class>> tooltip="New Journal Entry">{{$:
/core/images/file}}
<$set name="currentDateTime" value=<<now "0DD. 0MM. YYYY">>>
<<actions>>
</$set>
</$button>
I'm attempting to create a new tiddler with the button below:
>
> <$button class=<<tv-config-toolbar-class>> tooltip="New Journal
> Entry">{{$:/core/images/file}}
>
> <$action-sendmessage $message="tm-new-tiddler" tags=" [[JournalEntry]]
> <<now 0DD.0MM.YYYY>> " />
>
> </$button>
>
> The first tag is created without any incident. However, the second tag
> doesn't It gets passed as a literal string, pehaps obviously, ending up
> with the unwanted tags:
>
>
> - "<< now" and
> - "0DD.0MM.YYYY>>"
>
> How can I pass todays date in the format <<now 0DD.0MM.YYY>>?
>
--
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/bdfb836b-fc6b-49f0-86d6-48e116f72643%40googlegroups.com.