Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: allow templates to access all course data #1906

Closed
oliverfoster opened this issue Dec 20, 2017 · 0 comments
Closed

core: allow templates to access all course data #1906

oliverfoster opened this issue Dec 20, 2017 · 0 comments
Assignees

Comments

@oliverfoster
Copy link
Member

oliverfoster commented Dec 20, 2017

  • 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}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants