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).

But 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.

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
[email protected]

-- 
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 post to this group, send email to [email protected].
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/56d97aaa-0d12-4610-94b8-d42b67948f9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to