Author API Initialization
default_player_template
The assessment player template which will be selected by default when creating a new Activity.
You would want to specify this initialization option so that you can define the assessment player template used for all new Activities.
The template reference can be either an existing custom template or a template reference which has been defined by the player_templates
initialization option.
To find an existing custom template reference, go to the Activity editor "Player" section, inspect the DOM element of the custom template list entry, then find the DOM attribute value for [data-authorapi-player-reference]
.
Examples
var initializationOptions = {
"config": {
"activity_edit": {
"default_player_template": "my-assessment-player-template-reference"
}
}
};
Values
Attribute path config.activity_edit.default_player_template
Type string
Related articles
- Custom Assessment Player Templates
- The
activity_edit.player_templates
initialization option, which allows you to configure the custom assessment player templates for authors to select in the Activity editor.