Just tested this;
Tiddler: Open with open actions
<$list filter="[has[open-actions]!has[draft.of]]">
<$button>
<<currentTiddler>> {{!!open-actions}}<br>
Click me!
</$button>
</$list>
It creates a button for all tiddlers having a field open-actions with
content eg a tiddler with
<$action-sendmessage $message="tm-notify"
$param="SampleNotification"/><$action-setfield
mynow=<<now YYYY0MM0DD>>/>
Also a tiddler called SampleNotification has the message to display
This could be improved by using the an icon, or caption field, adding the
same to the view template by Tagging [[Open with open actions]] with
$:/tags/ViewTemplate
Also I would display the field with $view date widget, perhaps using
relative date.
So this should be functionally equivalent to your original request.
Since you date stamp is today you could even put in a test that only show
the button if is does not have today's date in the field.
Regards
Tony
On Thursday, November 29, 2018 at 4:00:49 PM UTC+11, TonyM wrote:
>
> Dave,
>
> The Quickest and easiest way to do I is to have a button appear when the
> tiddler is opened, via a view template entry. Yes you will have to click it.
>
> Perhaps http://inmysocks.tiddlyspot.com/#TriggerActions%20Plugin can do
> It, I am not sure.
>
> I have wanted something similar but was told we have to make a change in
> the navigation mechanism, which is not so strait forward, and is likely to
> have a performance impact.
>
> I have managed to get an action on close by adding an action to the Close
> button, But the Close all (page Button) will bypass it, and close all does
> not ”know" which tiddler your are using.
>
> *Another way*
>
> You could build your own tiddler, that contains a custom button that not
> only sets the field as you wish, but also opens the target for view or
> edit. As long as you click on that button to open the target tiddler you
> can get what ever actions you want to happen inside the definition of that
> button.
>
> Perhaps a tiddler containing the Button could be added to
> ($:/tags/AboveStory
> for elements to be placed at the top of the story river)
>
> Even better would be a way to add a field to any tiddler eg;
> on-open-action, then a special tiddler/Menu will list all such tiddlers,
> and provide a button which on click will transclude the on-open-action
> field in that button (and execute it on click), this is speculations on my
> part.
>
> *Basically what I am saying is if you provide a convenient way to open a
> tiddler in the first place you can determine what also Happens when opening
> it. It is not so easy to try and trap the opening of any tiddler, and
> respond with actions when a specific tiddler is opened. However their may
> be a hack no one has though of yet.*
>
> Regards
> Tony
>
>
> On Thursday, November 29, 2018 at 12:23:08 PM UTC+11, Dave wrote:
>>
>> I'd like to have that action happen when one specific tiddler opens. I
>> can put that tiddler in the default tiddlers, but also open in other
>> situations.
>
>
--
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/c6a0c25c-b906-4bd0-af86-4d164a458e7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.