Teil 2: Create Content
Container
Once the course itself - including navigation and various pages - has been created, you can populate the pages with content. To do this, so-called containers are available at the level immediately below the page; these can be divided into two categories: boxes and views. Containers generally organize page content and assign functionality to it. Boxes are containers that can only hold content, while Views can only contain other containers (Views or Boxes) as child elements.
Boxes
As an example of a box, first insert some text and then an exercise. The so-called textbox is intended for plain text that does not serve any other purpose, such as an exercise, an example, or the like. The text itself is often divided into paragraphs, which are marked with a p tag.
<textbox>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam</p>
</textbox>
<textbox>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam</p>
<p>An example of a formula is <m>f(x) = x^2</m>.</p>
</textbox>
<textbox>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam</p>
<p>An example of a formula is <m display="block">f(x) = x^2</m></p>
</textbox>
The text so far should be followed by an exercise. The exercisebox tag is available for this purpose.
<textbox>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam</p>
<p>An example of a formula is <m display="block">f(x) = x^2</m></p>
</textbox>
<exercisebox>
<p>Calculate the first derivative of <m display="block">f(x) = x^2</m></p>
</exercisebox>
Views
accordionview serves as an example of a view element. This element is used to create expandable elements (accordions). The individual expandable content items are, in turn, grouped together in another view, known as a groupview.
<accordionview>
<groupview>
<title>Accordion 1</title>
<textbox>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam</p>
<textbox>
</groupview>
<groupview>
<title>Accordion 2</title>
<textbox>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam</p>
<textbox>
</groupview>
</accordionview>
The complete page might then look like this:
<page name="examplePage">
<textbox>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam</p>
<p>An example of a formula is <m display="block">f(x) = x^2</m></p>
</textbox>
<exercisebox>
<p>Calculate the first derivative of <m display="block">f(x) = x^2</m></p>
</exercisebox>
<accordionview>
<groupview>
<title>Accordion 1</title>
<textbox>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam</p>
<textbox>
</groupview>
<groupview>
<title>Accordion 2</title>
<textbox>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam</p>
<textbox>
</groupview>
</accordionview>
</page>