[tw5] Re: How to combine two fields to get a title?

2020-03-29 Thread Giannis Moutsinas
Thanks! :) On Sunday, March 29, 2020 at 6:19:30 AM UTC+1, Mohammad wrote: > > Giannis, > One place to learn these kind of operations is TW-Scripts, for example in > your case see > > TW-Scripts: Concatenation >

[tw5] Re: How to combine two fields to get a title?

2020-03-28 Thread Mohammad
Giannis, One place to learn these kind of operations is TW-Scripts, for example in your case see TW-Scripts: Concatenation

[tw5] Re: How to combine two fields to get a title?

2020-03-28 Thread Giannis Moutsinas
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", h

[tw5] Re: How to combine two fields to get a title?

2020-03-28 Thread Giannis Moutsinas
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!!

[tw5] Re: How to combine two fields to get a title?

2020-03-28 Thread TonyM
I think it may need wikify(ing) I normally test before posting, because my intuition is not always correct with tiddlywiki, I was oin my mobile and did not test it, sorry. Trust marks suggestion for now! Regards Tony On Sunday, March 29, 2020 at 10:40:15 AM UTC+11, Giannis Moutsinas wrote: > >

[tw5] Re: How to combine two fields to get a title?

2020-03-28 Thread Giannis Moutsinas
Hi Tony, This was actually one of the things that I tried and it didn't work. I still don't understand why. :) On Saturday, March 28, 2020 at 9:36:00 PM UTC, TonyM wrote: > > Try the following, untested by me now. > > \define fullname() {{temp!!name}} {{temp!!surname}} > > Then use <> at the tit

[tw5] Re: How to combine two fields to get a title?

2020-03-28 Thread 'Mark S.' via TiddlyWiki
When you want to use a macro for concatenation, you need to use the special macro variables. Either $variable$ or $(variable)$. The latter is often most useful. \define basetitle() $(name)$ $(surname)$ <$vars name={{temp!!name}} surname={{temp!!surname}}> <$button> <$action-createtiddler $baseti

[tw5] Re: How to combine two fields to get a title?

2020-03-28 Thread TonyM
Thanks Mohammad My next suggestion would be triple curly braces and a filter like yours. Thanks for the correction. Tony -- 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 e

[tw5] Re: How to combine two fields to get a title?

2020-03-28 Thread Mohammad
Tony! Strangely this does not work! Except you use a wikify widget!! --Mohammad On Sunday, March 29, 2020 at 2:06:00 AM UTC+4:30, TonyM wrote: > > Try the following, untested by me now. > > \define fullname() {{temp!!name}} {{temp!!surname}} > > Then use <> at the title > > Tony > > -- You rec

[tw5] Re: How to combine two fields to get a title?

2020-03-28 Thread Mohammad
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}addsuf