Skip to content

core: allow templates to access all course data #1906

Description

@oliverfoster
  • add {{import_adapt}} helper
    add this once to the top of the template or the beginning of the json string
  • allow {{Adapt.config.propertyName}}
  • allow {{Adapt.course.propertyName}}
  • allow {{Adapt.contentObjects.[id].propertyName}}
  • allow {{Adapt.articles.[id].propertyName}}
  • allow {{Adapt.blocks.[id].propertyName}}
  • allow {{Adapt.components.[id].propertyName}}

Example

{{import_adapt}} {{{Adapt.course.displayTitle}}} {{{Adapt.components.[c-05].displayText}}}

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions