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
trueandquestion_type_templatesandquestion_type_groupsare 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
trueandquestion_type_templatesand/orquestion_type_groupsare set, these options will be appended to the defaults. - If this option is set to
falseandquestion_type_templatesis 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 theadvanced_groupinitialization option is enabled. - If this option is set to
falseandquestion_type_templatesis 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, animageattribute must be set in each template defined inquestion_type_templatesfor 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