Hi,

Updated macro with triple quotes (thanks Mat):

\define buttonto(tiddler,image,description,caption,tag)
<$button to="$tiddler$" tooltip="$description$" class=<<tv-config-toolbar-
class>>>
<$list filter="[all[current]!has[caption]]">
<$action-setfield $field="caption" $value="""{{$image$}} $caption$"""/>
<$action-setfield $field="description" $value="""$description$"""/>
<$action-setfield $field="tags" $value="""$tag$"""/>
</$list>
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
{{$image$}}
</$list>
<$list filter="[<tv-config-toolbar-text>match[yes]]">
<$text text="$caption$"/>
</$list>
</$button>
\end

Usage:

<<buttonto
tiddler
image
description
caption
tag
>>

Cheers,

Ton

-- 
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/d473f95f-1aaf-4b2b-92fe-e7ec2907bf45%40googlegroups.com.

Reply via email to