class %CSP.StudioTemplateSuper
extends %CSP.Page
The %CSP.StudioTemplateSuper is the superclass for all the template
pages. All templates must derive from this superclass in order to work correctly.
parameter CHARSET = "UTF-8";
Make sure templates default to UTF-8
parameter GlobalTemplate = 0;
If this is true then even if this template is tied to a specific namespace it
will be available in any namespace and it will be up to the template to make sure
it looks for any specific data in the target namespace.
classmethod IsEnabled()
as %Boolean
Return false from this method to disable this template (for example based on the server platform)
classmethod LocalizeName(id As %String, ByRef name As %String, ByRef description As %String)
as %Status
Default code to localise the name and description of this template is to look it up in %TemplateName
or TemplateName domain in localization table.
classmethod OnErrorSetup(ByRef skipheader As %Boolean)
as %Boolean
This is called before the OnPreHTTP and will handle the HyperEvent errors and
setup the status line in the response for the standard errors.