8.1 Note Files ↑
8.1.7 The defaults Class Template
Even if a Collection does not make use of the class field, the user may create a special class template file with the name of defaults
, which can then be used to specify a default value for any field in the Collection.
For example, it is often convenient to specify a default value for the status field, so that the field is not simply blank after creating a new Note.
Here’s how to make this work.
Use the
Generate New Class Template...
item beneath theCollection
menu to create a class template file with the name ofdefaults
. This file will be stored within a subfolder namedclass
, within the folder holding your Collection’s Notes.After creating the requested class template file, Notenik will ask macOS to open the file within your preferred text editor.
The new defaults template file will have all of the Collection’s field labels called out, but without any following information. You can now pecify default values for any of these field labels, to be provided whenever you create a new Note.
There are special rules associated with Specifying a Default Title Value.
When you’re done making these changes, save the class template file within your text editor, and then Reload the Collection within Notenik.
Contents
- 8.1.7.1 Specifying a Default Title Value
Next: 8.1.7.1 Specifying a Default Title Value
Skip to: Why is the Notenik Format Different?