BaseTemplate.save (Method)

Saves base template information.

Returns:

BaseTemplateID (integer)

Arguments:

Name Type Required Description
templateID BaseTemplateID_0 Required A base template's ID. If this value is 0, CommonSpot creates a new base template instead of updating an existing one.
name PlainText_NonNull_255 Required A base template's name.
description PlainText_NonNull_2000 Required A base template's description.
type BaseTemplateType Required The base template's type, which is either 'CFML' or 'URL'.
filename ModulePath_NoSpace Required The base template's file name if type is CFML or module path if type is URL.
categoryID TemplateCategoryID_0 Required A base template's category ID.
isPublic Boolean Optional. Defaults to '1'. Boolean value which when set to true tells CommonSpot that it should show this base template in the CommonSpot template gallery for yourself and other users with appropriate permissions.
shortcutIconImageID ImageID_0 Optional. Defaults to '0'. The ID of an existing image to use as the shortcut icon image, or 0 for the default.

Context:

License Requirements None
Permission Requirements subsite:ManageBaseTemplates
Deny Context None
Require Context AuthoringEnabled
Author Lock (not required)
Transaction Logging If transaction logging is enabled at the site level, calls to this method will be logged
Customization This method may be customized at the site level

Error Codes:

Code Error Message
68001 A template with the specified name already exists.
68002 A page or template already exists with specified name within this subsite.
68003 The specified template file does not exist in this subsite's template directory.
68004 The specified ColdFusion module is a CommonSpot stub file and cannot be used as a base template.
68008 You cannot make a base template public that is uncategorized.

Notes:

None