[Plugin Tidgraph] How to use variables in filters for tiddlers tagged with StartupAction

59 views
Skip to first unread message

@magasine

unread,
Feb 19, 2020, 11:17:40 AM2/19/20
to tiddl...@googlegroups.com
Folks,

I am looking for a solution to this problem:

The tiddler tagged with
  
$:/tags/StartupAction

has the following filters below:


<$list filter="[tag[DoW]prefix<now DDD>]">
<$action-setfield $field="_tgr_node_class_add" $value="my-gold-node" />
</$list>


<$list filter="[tag[DoW]] -[tag[DoW]prefix
<now DDD>]">
<$action-setfield $field="_tgr_node_class_add" $value="" />
</$list>


In previous versions (possibly up to 5.1.18) the filters worked, but now I have problems.

Any ideas on how to correct this behavior?

Thanks in advance for help.

Manoel.

P.S .: DoW = Day of the Week

Mark S.

unread,
Feb 19, 2020, 12:27:32 PM2/19/20
to TiddlyWiki
I'm amazed that this ever worked -- I don't think I've ever seen passing a parameter
to a macro in the middle of a filter before. Perhaps you could try this:

<$vars today=<<now DDD>>>
<$list filter="[tag[DoW]prefix<today>]">

<$action-setfield $field="_tgr_node_class_add" $value="my-gold-node" />
</$list>


<$list filter="[tag[DoW]] -[tag[DoW]prefix<today>]">

<$action-setfield $field="_tgr_node_class_add" $value="" />
</$list>
</$vars>

Message has been deleted

TonyM

unread,
Feb 19, 2020, 10:40:28 PM2/19/20
to TiddlyWiki
Manoel

The defaut startup actions can be limited. Look for the plugin version if you want more sophisticated startup actions.

Regards
Tonu

Reply all
Reply to author
Forward
0 new messages