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

瀏覽次數:59 次
跳到第一則未讀訊息

@magasine

未讀,
2020年2月19日 上午11:17:402020/2/19
收件者: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.

未讀,
2020年2月19日 中午12:27:322020/2/19
收件者: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>

訊息已遭刪除

TonyM

未讀,
2020年2月19日 晚上10:40:282020/2/19
收件者:TiddlyWiki
Manoel

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

Regards
Tonu

回覆所有人
回覆作者
轉寄
0 則新訊息