Hi everyone,
I am cloning and modifying the $:/core/ui/Buttons/new-here tiddler.
I would like the new child tiddler created by the button to have a custom field ‘author’, filled with the contents of the author field of the parent tiddler, and a custom ‘sourcetitle’ field, filled with the contents of the sourcetitle field of the parent tiddler.
I think I need to do something close to what I have below:
<$action-sendmessage $message="tm-new-tiddler" ... author=<<author>> sourcetitle=<<sourcetitle>>... />
I tried
<$set name="author" filter="[<currentTiddler>]">
but there are two issues:
- It pastes the title of the parent tiddler, not the contents of the author field of the parent tiddler
- It wraps it in
[[
and]]
if it is more than one word. The contents of those fields are simple text with multiple words, and I want to just paste the text.
What filter would I put? Or is there a better way to do this?
addendum: if you are wondering what I am doing:
- The parent tiddler will be for a source (book, webpage, etc).
- The child tiddlers will be notes from that source.
- The child tiddlers text field: has view widgets that grab the contents of its own author, title and pagenumber fields. That way when I type or paste a note, the author and title will be pre-filled, and I just have to add the page number to the pagenumber custom field.