template_defaults - Initialization - Question Editor API

Question Editor API Initialization

template_defaults

This config option allows you to selectively show or hide the "default" Learnosity templates in the tile view (E.g. "Multiple choice - multiple response", "True or false").

How the tile view is affected depends on the values set for several other initialization options, primarily question_type_templates - see below for this behavior.

  • If this option is set to true and question_type_templates and question_type_groups are not set (I.e. the default values for each), the default templates will be shown, in their default group.
  • If this option is set to true and question_type_templates and/or question_type_groups are set, these options will be appended to the defaults.
  • If this option is set to false and question_type_templates is not set, only the raw Question and Feature types are shown. Default Question templates and Feature templates are not included. For example, the raw Calculator Feature type is shown, but the Scientific calculator template is not. Similarly, the raw Imagetool Feature type is shown, but the Protractor and Ruler templates are not. Feature types that do not have default templates (for example, Audio player, Video player, Passage, and Line Reader) continue to appear as raw Feature types. This behavior is equivalent to the raw Question types displayed when the advanced_group initialization option is enabled.
  • If this option is set to false and question_type_templates is set, the custom questions will be be shown along with the raw instances of the other question types.
  • If this option is set to false, an image attribute must be set in each template defined in question_type_templates for display in the tile view.

For a comprehensive overview of tile view customization, including behavior when customizing the group defaults (via group_defaults and question_type_groups) please see the help article Customizing the Tile View With Author API

Values

Attribute path template_defaults

Default true

Type boolean

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.