Here is what I have going on, and it’s not working. I’ve laid out the instructions in the page “Customizing EditTemplate field rendering” to suit what I think it is trying to get across, and not having any luck.
Part 1
To modify the appearance of all fields whose name ends with-notes create a new tiddler…
-
Create a tiddler.
-
Add the tag “$:/tags/FieldEditorFilter
” to the unnamed tiddler.
-
Add a field named “list-before” and put “$:/config/FieldEditorFilters/default
” in the value
-
Type this into the text area of the unnamed tiddler: “[regexp[-notes$]then[$:/config/EditTemplateFields/Templates/notes]]
”.
-
Give this tiddler the name “Change the notes field”
Part 2
The variables currentTiddler and currentField are set to pass information about the tiddler and field that are edited to the transcluded tiddler.
For example, a tiddler containing the following WikiText would render the field as an HTML input element of the type textarea. This will show a box for multiple lines of text to be entered.
<$edit-text tiddler=<<currentTiddler>> field=<<notes>> type="textarea" class="tc-edit-texteditor" placeholder="" tabindex={{$:/config/EditTabIndex}} cancelPopups="yes"/>
(I think this is what should be named $:/config/EditTemplateFields/Templates/notes, because the instructions to change the field rendering are in this tiddler. The directions to transclude it into a new tiddler are in the previous tiddler.)
-
Create a new tiddler.
-
Type this into the text area of the unnamed tiddler: "<$edit-text tiddler=<<currentTiddler>> field=<<notes>> type="textarea" class="tc-edit-texteditor" placeholder="" tabindex={{$:/config/EditTabIndex}} cancelPopups="yes"/>"
.
-
Give this tiddler the name $:/config/EditTemplateFields/Templates/notes
This doesn’t work. I’ve tried it with the date example, of course, and that didn’t work. I’m just unclear where to put the “<edit-text…” stuff to make it effective.
I tried it by using a button that creates a tiddler with prenamed fields, one of which is “notes”. The tiddler created does not have the note field input become a textarea.