-
Notifications
You must be signed in to change notification settings - Fork 36
Page Model
Darren Siegel edited this page Apr 25, 2021
·
2 revisions
The following defines the structure of Torus page resources. This is the JSON structure that populates the
content
field in the revisions
table.
An example page:
{
model: [
{
type: "group",
layout: "deck"
children: [
{
type: "activity-reference",
activity_id: 28124,
lesson_id: "A1",
purpose: "learnbydoing"
}
]
}
],
advancedDelivery: true,
advancedAuthoring: true,
displayApplicationChrome: false,
additionalStylesheets: ["https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.css"],
}
Attribute | Description |
---|---|
model |
The core page model, or content. This attribute is an array of content object instances. See below for descriptions of all types of content objects |
advancedDelivery |
Indicates whether the page should be delivered via the advanced, adaptive delivery impl. |
advancedAuthoring |
Indicates whether the page should be authored via the advanced, adaptive authoring impl. |
displayApplicationChrome |
Indicates whether the standard Torus chrome (branding logo, user icon, page navigation) should be displayed or not. Defaults to true if not specified. |
additionalStylesheets |
Specifies a collection of URLs to CSS stylesheets to be included in the head element of the page. |
TBD: Document groups, structured content, activity-references