You can define a tcl proc that will provide a default value when you call etp::define_content_type.
@param content_type The content type you're registering. This name
must be unique across all pages that must store
extended page attributes.
@param pretty_name The display name for the content type
@param pretty_plural The plural form of the display name
@param attribute_metadata A list of records describing each extended
page attribute. Each record is a list containing the following values (in sequence):
- attribute_name
- pretty_name
- pretty_plural
- datatype (must be one of the entries in acs_datatypes:
string, boolean, number, integer, date, etc.)
- html (a string containing html attributes for the input
control. useful attributes are "size=X" to specify
the size of standard input controls, and "rows=X cols=X"
to specify the size of a textarea. Textareas will be
used only if the datatype is string and html specifies
rows or cols.)
- default_value (can either be a string denoting a single default
value, or the name of a callback function you've
defined in the etp namespace which is used to
provide values for select lists).