http://www.freezingcode.com/twTemp/category_name_20200424.html

The above tiddlyWiki file illustrates my question.


The "New" button in the TODO tiddler (there is one "New" button per context 
section) is supposed to create a new tiddler with tags automatically added. 
One of the tags "Task" is hard coded, and should be. The other tag is 
dynamic, and represents the current section Context (e.g. "Context_Home" or 
"Context_Out", etc.) and is placed in that code, hopefully, via a variable.

When you click on one of the "New.." buttons, you'll get a new tiddler 
draft, and notice that the current context is not one of the tags, but the 
variable declaration is: <<thisContext>>. That is what is not working.

This variable worked fine when the listWidget loop was looping over a text 
string of gathered contexts. But the filter has been changed to loop over 
tags now. Apparently that macro style syntax (i.e. <<thisContext>> ) 
doesn't quite work the same way now that the iterator is a tag.

Notice also that the variable works in the Button Display Text area, so we 
knot the variable is representing the right thing and is present at that 
point in the code.

Thanks for Looking!

<$button>
<$action-sendmessage $message="tm-new-tiddler"
 title="Task"
 tags="Task <<thisContext>>"
 priority="3"
/>
New Task for <<thisContext>>
</$button>


-- 
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/20ce31fb-bda4-4aa3-828c-0171ff4ca7bc%40googlegroups.com.

Reply via email to