Hi! I try to modify my "image add"  macros. Now if I edit  my 
tiddler https://design4shop.ru/heeg.html#boston_ego_lab at the end of the 
tiddler we can add images using editable table.

I want to put title of the new image automatically. So i 
edit $:/core/ui/Buttons/edit  and put action there to edit my temp field 
with new image title.


\define newImageTit()
$(currentTiddler)$*_**<$count filter="[type[image/jpeg]]"/>*
\end


<$button message="tm-edit-tiddler" tooltip={{$:/language/Buttons/Edit/Hint}} 
aria-label={{$:/language/Buttons/Edit/Caption}} class=<<tv-config-toolbar-
class>>>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/core/images/edit-button}}
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Edit/Caption
}}/></span>
</$list>


*<$action-setfield $tiddler="$:/**temp/table**" text=<<newImageTit>>/>*


</$button>


It works and title appear, but how to add number to this title I dont know.

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/f01077c7-e19c-4b88-8a8d-1412190ee580%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to