Template Retrieval

Templates of a given type are retrieved when a given use case that calls for their use arises. What template is used for a given use case is determined using the following order of evaluation.


When Dealing With Multiple Events When Dealing With A Single Event

Sundial looks for a WebAPI request variable corresponding to the desired template name.

If a request variable exists, Sundial determines whether the variable specifies a URI identifying a template that exists outside of Sundial's storage system or the name of a system template defined within Sundial.

  • If the request variable specifies a URI, Sundial retrieves the template content from the specified location.
  • If the request variable specifies a system template defined within Sundial, this template is used.
 

If an event-specific, custom template exists for an event, Sundial will use this template.

 

If a branding has been specified for an event, Sundial will use the appropriate template as defined within the branding specified.

If a branding has been specified for use with a WebAPI interface, Sundial will use the appropriate template as defined within the brand.

If no branding has been specified, Sundial will use the appropriate template as defined within Sundial's DEFAULT branding.

Tags: