And here is a button that creates a new tiddler who’s title includes a
number retreived from a tiddler.
After creating the tiddler, the number ist incremented using the rpn macro:
<$wikify name="id" text="{{$:/plugins/telmiger/AutoTid/next-ID
}}-{{$:/plugins/telmiger/AutoTid/namespace}}">
<span><$button tooltip="Add element" class="te-btn-big te-create">
<$action-createtiddler $basetitle=<<id>> tags="AutoTid" text=""
caption="New element" e-name="New element"
t-index={{$:/plugins/telmiger/AutoTid/next-ID}}/>
<$action-setfield $tiddler="$:/plugins/telmiger/AutoTid/next-ID" $value=<<rpn
"{{$:/plugins/telmiger/AutoTid/next-ID}}" 1 +>> />
<$action-navigate $to=<<id>>/>
<$action-sendmessage $message="tm-edit-tiddler" $param=<<id>>/>
{{$:/core/images/new-button}}
</$button></span>
</$wikify>
You can see the button
<https://tid.li/tw5/test/concept.html#%24%3A%2Fplugins%2Ftelmiger%2FAutoTid%2Fui%2Fbuttons%2Fnew>
in the top right corner here: https://tid.li/tw5/test/concept.html
--
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/95a9a042-a56c-44be-b429-ffdcfd5a8944n%40googlegroups.com.