Back to Notenik Docs


The Notenik Knowledge Base

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.

  1. Use the Generate New Class Template... item beneath the Collection menu to create a class template file with the name of defaults. This file will be stored within a subfolder named class, within the folder holding your Collection’s Notes.

  2. After creating the requested class template file, Notenik will ask macOS to open the file within your preferred text editor.

  3. 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.

  4. 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


Next: 8.1.7.1 Specifying a Default Title Value

Skip to: Why is the Notenik Format Different?