I create an entry that has the following in it. Then I go and choose a suitable template. Then set the content of this template to text for this tiddler, but then I want to go to the edit template for this tiddler, how can I do this with a button.
<$select tiddler='$:/state/button-templates' tooltip='Select the template to create'>
<option>{{$:/plugins/mabuqian/time-for-task/5w1h-templates!!caption}}</option>
<option>{{$:/plugins/mabuqian/time-for-task/issue-templates!!caption}}</option>
</$select>
<$button>
<$action-setfield $field="text" $value={{{ [[$:/state/button-templates]get[text]get[text]] }}} />
<$action-sendmessage $message="tm-edit-tiddler" $param=<<currentTiddler>> />
Confirm Add
</$button>
The content in the template is some simple content with big headlines.like this.
! What kind of problems were encountered?
! How to reproduce the problem?
! What should be the effect after the fix?
I’ve checked this thread, but I don’t want to create a form like that.
But the code I wrote, doesn’t get the content in the template, instead it clears it and then lets me edit it, why is that? Is there a good solution for this? Thanks.