James
1
hi all experts in TW,
I attempted to have a button which will create a new tiddler with a custom tiddler title (e.g. "Profile - ") when user click on the it.
I tried many ways, such as create a macro to concatenate the text of "Profile - " and the text on the name field. But, it did not work as I expected.
Can anyone provide me an advice on how to combine/merge two strings into one?
Thanks a lot.
G’day,
Starting with the basics:
<$button message="tm-new-tiddler" param="Profile -">New Task</$button>
Assuming that <<Name>> gives you the result you want, then:
<$button message="tm-new-tiddler" param={{{ [[Profile - ]addsuffix<Name>] }}}> New Task</$button>
Awesome.
If that does the trick for what you are trying to do, then what you are doing is obviously cool because, dude, it’s TiddlyWiki.
Rock’n roll !!!