Hi, after playing a little with TW5 I'm very pleased with the results. The only problem that I can't solve is the folowing tiddler, in wich I define a local macro to concatenate two inputs that I save in various sites (in the 'autor' and 'titulo' fields of the tiddler containing data from an article, and concatenated for the title of that same tiddler):
\define tituloPaper(autor:"Anónimo",titulo:"No se sabe")
$autor$: "$titulo$"
\end
The input fields:
|>|!Título |<$edit-text tiddler="$:/temp/paper" field="titulo" placeholder="Título de la publicación" size="60"/>|
|>|!Autor |<$edit-text tiddler="$:/temp/paper" field="autor" placeholder="Autor de la publicación" size="60"/>|
The button that creates the tiddler with the article information:
<$set name="au" value={{$:/temp/paper!!autor}}>
<$set name="ti" value={{$:/temp/paper!!titulo}}>
<$maketid title=<<tituloPaper {{$:/temp/paper!!autor}} {{$:/temp/paper!!titulo}} >> tags="paper referencia" template="PaperSkeleton" edit="yes"><$button message="tw-new-tiddler">Agregar paper</$button></$maketid>
</$set></$set>
This is a test of the macro that works:
<<tituloPaper {{$:/temp/paper!!autor}} {{$:/temp/paper!!titulo}}>>
A button to clean de temp tiddler fields:
<$setfield tiddler="$:/temp/paper" set="!!titulo" setTo="">
<$setfield tiddler="$:/temp/paper" set="!!autor" setTo="">
<$button message="tw-set-field" param="SetField Target">Limpiar</$button>
</$setfield></$setfield>
Everything works as expected (correct tags, fields with the 'autor' and 'titulo' data and contents from a template tiddler), but the title is set to
{{$:/temp/paper!!autor}}: "{{$:/temp/paper!!titulo}}"
This happens in TW 5.1.0 and 5.1.1
So, what should I do? Use the MacroCall widget? (Can you use a widget inside a widget?) Change everything?. If this approach is completely wrong I accept suggestions as I'm learning.
As you can see, this way of titling is inspired in TW for Scholars from Alberto Molina.
Thanks!
Tomás