I want to generate a new tiddler from entered data (<$button><$action-sendmessage ... /> /> from <$edit-text ... />). I'm having problems generating a tag list that is to consist of one of the entered values plus a text literal (two tags total).
I can't figure out how to concatenate something for consumption by <$action-sendmessage ... />.
Below are the three tiddlers I'm using (simplified). Probably only the third tiddler "newProjectButton" is important here, but I don't have a good handle yet on substitution and transclusion, so the whole simplified series is presented.
The attempt to generate the new project tiddler is intended to be done when viewing tiddler one "hostTiddler".
Tiddler one:
title=hostTiddler
text=hostTiddler: displays all projects, including a tabbed interface. Tabs are for projects, or ticklers, or statuses, et cetra.
{{transcludedTiddler}}
Tiddler two:
title=transcludedTiddler
text=transcludedTiddler: displays a tab page. In this case it would show a list of projects (not included in this sample). It also hosts a button for starting a new project.
{{newProjectButton}}
Tiddler three:
title=newProjectButton
text=newProjectButton: provides entries and control necessary for starting a new project.
Need a new project? Click this [[button|newProjectButton]] and a tiddler will be created and tagged with the project number and //''project''// and will have the following fields and values:<br>
> Project number: <$edit-text tiddler="$:/state/project-number" tag="input" default=""/>
> Project title (from the [[Project number]], will be used as the new project tiddler's title): {{$:/state/project-number}}
> Tag list: <$edit-text tiddler="$:/state/project-taglist" tag="input" default=""/> Don't want to have to manually enter these tags for the new project tiddler; the tags should be derived from the //''$:/state/project-number''// entered above plus the text literal "//''project''//". How to do this?
<$button>
<$action-sendmessage
$message="tm-new-tiddler"
title={{$:/state/project-number}}
tags={{$:/state/project-taglist}}
projectnumber={{$:/state/project-number}}
/>
New project
</$button>
Thanks much, everyone!
Mark Hylton