Path

ez.no / exponential / documentation / development / extensions / datatypes / new datatype / missing step 4.5: don't forget to enable your templates


Missing Step 4.5: Don't forget to enable your templates

This is in the "Building an Exponential module" tutorial, but not here, and it took me a while to figure out. The "edit" and "view" templates you've just added in extension/myextension/design/ need to be enabled by adding a design.ini.append.php file in extension/myextension/settings/. Just open/create the file and make sure it contains:

[ExtensionSettings]
DesignExtensions[]=myextension

Otherwise, the custom datatype may not show up on edit forms -- for instance data_text types such as e-mail addresses default to a hidden form field, which obviously isn't any good for data entry!