On Sunday, October 20, 2019 at 3:40:53 AM UTC+2, TonyM wrote:
{{!!fieldname||template}}
>
> {{tiddlername!!fieldname||template}}
>
> Is there a way in the template tiddler for me to get the name of the
> fieldname?
>
<$set name="myCurrentField" value="fieldname">
{{!!fieldname||template}}
</$set>
<$vars myCurrentField="fieldname">
{{!!fieldname||template}}
</$vars>
should do it. The same mechanism is used within TW templates.
currentTiddler is "just a variable" defined with set- or vars-widget.
You should use a my-prefix or something similar. currentField may clash
with a future core.
-m
--
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/6f83cb1a-981f-4005-9f98-f3ece674f9ce%40googlegroups.com.