Hi TonyM,
Le vendredi 8 février 2019 02:13:39 UTC+1, TonyM a écrit :
>
> FrD,
>
> Thanks, I suppose if I had to choose it would be;
>
> sc_linkNavigateToOrCreateEditModeJournal : navigate to a journal or create
> it in edit mode
>
>
> - Does this mean if it exists it opens in view mode, if it does not
> the new one opens in edit mode?
>
>
Yes.
>
> -
>
>
> Could you perhaps include user defined actions such as
> <<simplecal-onclickday-actions>> where the user can then define
>
> \define simplecal-onclickday-actions()
>
> <$action-sendmessage $message="tm-add-tag" param="Journal">>/>
>
> <$action-setfield $field=journal-date $value=<<now
> "YYYY0MM0DD0hh0mm0ss000">>/>
>
> \end
>
> and the above will add the tag and fieldname the user desires, and if not
> defined will do nothing?
>
> Thanks
> Tony
>
Inside the <$button> widget of the
"sc_linkNavigateToOrCreateEditModeJournal" macro, put the following code :
<$action-setfield $tiddler=<<journalTitle>> $field="journal-date" $value=<
<now "YYYY0MM0DD0hh0mm0ss000">>/>
<$action-setfield $tiddler=<<journalTitle>> tags="Journal"/>
<$action-sendmessage $message="tm-edit-tiddler" param=<<journalTitle>>/>
//$day$//
Or better, copy the macro, rename it and change the content of the
<$button> widget.
That should do what you want.
Regards
FrD
--
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/875587f3-8d3b-4f5f-8e69-cee6f00c517b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.