Hi Andrew,
 

> In the following code, is there any way to get the title to show up in the 
> action-setfield attributes?
>

While I assume your filter is a placeholder for whatever the real filter is
and the text you wish to generate is a bit awkward,
you need to use a helper macro to construct the text, e.g.:

<$button>
<$list filter="[[]make[max:10]]">
<vars new-text="[[edit|$(currentTiddler)$]]">
<$action-setfield text=<<new-text>>  tags="[[General Settings]]" 
caption="{{!!title}}"/>
</$vars>
<$action-navigate/>
</$list>
Make New Tiddlers
</$button>

Notice how I abused the vars widget to actually declare this macro which 
doesn't need parameters.

Try the above in a new tiddler at:

http://tobibeer.github.io/tw5-plugins

Instead of using the vars widget you could also do (a more traditional):

define new-text() [[edit|$(currentTiddler)$]]

<$button>
<$list filter="[[]make[max:10]]">
<$action-setfield text=<<new-text>>  tags="[[General Settings]]" 
caption="{{!!title}}"/>
<$action-navigate/>
</$list>
Make New Tiddlers
</$button>

Best wishes,

Tobias.

-- 
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/d0ca9f4e-2a3b-466c-9713-2d4dd707de2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to