Thanks again Tobias!  As usual that did the trick.  You have been essential 
in speeding up my TW5 usage. 

On Wednesday, 6 January 2016 16:59:41 UTC-5, Tobias Beer wrote:
>
> 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/9ffe26da-48af-48c3-b551-abc7dffc73da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to