I solved my problem by following Mark's advice.
Thanks!
On Sunday, March 29, 2020 at 12:00:20 AM UTC, Giannis Moutsinas wrote:
>
> This worked just fine. Thanks. A quick question how can I concatenate with
> a constant string. For example if I want to have a title of the form "Mr
> John Dow", how do I write that. I tried
> {{{ "Mr "addsuffix[ ][{temp!!name}addsuffix[ ]addsuffix{temp!!surname}]
> }}}
> and
> {{{ [Mr ]addsuffix[ ][{temp!!name}addsuffix[ ]addsuffix{temp!!surname}]
> }}}
> but they didn't work.
>
> On Saturday, March 28, 2020 at 9:41:34 PM UTC, Mohammad wrote:
>>
>> This is related to concatenation strings and quite alot discussed here!
>> Yes it is confusing!
>>
>> If you have name in name and surname in surname field of temp tiddler,
>> then to create a concatenated one you have several choice!
>> One simple solution is like this
>>
>> <$vars fullName={{{ [{temp!!name}addsuffix[ ]addsuffix{temp!!surname}]
>> }}}>
>> <$button>
>> <$action-createtiddler $basetitle=<<fullName>> tags="person"
>> name={{temp!!name}} surname={{temp!!surname}} />
>> Create
>> </$button>
>> </$vars>
>>
>>
>> You will get better solution from geeks here :-)
>>
>> --Mohammad
>>
>
--
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/1e779b24-e679-4735-a85a-7503fd22af0c%40googlegroups.com.