Hello everyone,
I need some help to correct my Tiddler and Template Tiddler which is generally working, but I woould like the due-date field to show as a tag ( format 0DDst MMM YYYY ) in the resultant tiddler - if possible. Can anyone solve this?
I have attached json tiddlers so that you can try them out at https://tiddlywiki.com/
Template
<$details summary="Summary"open="no" class="success">
<table>
<tr align="left" valign="top"><th>object-type</th><th>what</th><th>who</th><th>date</th><th>when</th><th>where</th><th>why</th></tr>
<tr align="left" valign="top"><td>{{!!object-type}}</td><td>{{!!what}}</td><td>{{!!who}}</td><td><$view field=due-date format=date template="[UTC]DDth MMM YYYY" /></td><td>{{!!when}}</td><td>{{!!where}}</td><td>{{!!why}}</td></tr>
</table>
</$details>
New Object
\define testCreate()
<$action-createtiddler $basetitle={{{ [{!!what}addsuffix[ ]addsuffix{!!who}addsuffix[ ]addsuffix{!!due-date}addsuffix[ ]addsuffix{!!when}addsuffix[ ]addsuffix{!!where}addsuffix[ ]addsuffix{!!why}] }}} $template="$:/_/my/templates/object"
what={{!!what}}
who={{!!who}}
due-date={{!!due-date}}
when={{!!when}}
where={{!!where}}
why={{!!why}}
object-type={{!!object-type}}
tags={{{ [{!!what}addsuffix[ ]addsuffix{!!who}addsuffix[ ]addsuffix{!!due-date format=date template="[UTC] 0DDth MMM YYYY"}addsuffix[ ]addsuffix{!!when}addsuffix[ ]addsuffix{!!where}addsuffix[ ]addsuffix{!!why}addsuffix[ ]addsuffix{!!object-type}] }}}
>
<$action-navigate $to=<<createTiddler-title>>/>
</$action-createtiddler>
</$set>
\end
<table>
<tr align="left" valign="top"><td><<combo-get"what">></td></tr>
<tr align="left" valign="top"><td><<combo-get"who">></td></tr>
<tr align="left" valign="top"><td><<combo-get"where">></td></tr>
<tr align="left" valign="top"><td><<combo-get"due-date">></td></tr>
<tr align="left" valign="top"><td><<combo-get"when">></td></tr>
<tr align="left" valign="top"><td><<combo-get"why">></td></tr>
<tr align="left" valign="top"><td><<combo-get"object-type">></td></tr>
</table>
<$button actions=<<testCreate>> >
Create Tiddler
</$button>
$____my_templates_object.json (588 Bytes)
$____my_buttons_new-object.json (1.6 KB)