Skip to content

Commit 924ad46

Browse files
committed
Update the html, discussion, and video OLX component docs
1 parent de6560e commit 924ad46

File tree

3 files changed

+121
-115
lines changed

3 files changed

+121
-115
lines changed

source/educators/olx/components/discussion-components.rst

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,27 @@ Discussion Components in OLX
66

77
.. tags:: educator, reference
88

9-
.. warning:: This page refers to the older discussion forums (pre-Olive release) and may be out of date.
9+
.. warning::
10+
11+
This page refers to the older discussion forums (pre-Olive release) and is deprecated for post-Olive releases.
12+
13+
For Olive and newer releases, discussion components are automatically created for each ungraded unit. To
14+
enable discussion on graded units, the behavior can be overridden via the ``discussions_settings`` attribute
15+
on the ``course`` object in the ``course/run.xml`` file.
16+
17+
Here is an example of ``discussions_settings`` with ``enable_graded_units`` set to ``true``:
18+
19+
.. code-block:: xml
20+
21+
discussions_settings=
22+
"{"enable_graded_units": true,
23+
"enable_in_context": true,
24+
"provider_type": "openedx",
25+
"unit_level_visibility": true,
26+
"posting_restrictions": "disabled",
27+
"openedx": {"group_at_subsection": false}}"
28+
29+
The UI for discussions configuration can be found under the Content > Pages & Resources menu in Studio.
1030

1131
You can add inline :term:`Discussion` components to any container in your
1232
course.
@@ -91,7 +111,7 @@ The ``discussion`` element contains no children.
91111
- The name of the subcategory for the inline discussion as shown in the
92112
**Discussion** tab of the course. For example: ``Problem 2``
93113
* - ``display_name``
94-
- Optional. The value that is displayed to students as the name of the
114+
- Optional. The value that is displayed to learners as the name of the
95115
discussion component. If you do not supply a ``display_name`` value,
96116
"Discussion" is supplied for you.
97117
* - Optional. ``discussion_id``
@@ -135,5 +155,5 @@ The following example shows an XML file for a discussion component.
135155
+--------------+-------------------------------+----------------+--------------------------------+
136156
| Review Date | Working Group Reviewer | Release |Test situation |
137157
+--------------+-------------------------------+----------------+--------------------------------+
138-
| | | | |
158+
| 2025-11-06 | sarina | Ulmo | Deprecated |
139159
+--------------+-------------------------------+----------------+--------------------------------+

source/educators/olx/components/html-components.rst

Lines changed: 33 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,17 @@ HTML Components in OLX
1414
Create the HTML Component
1515
*********************************************
1616

17-
To add an HTML component to your course, you can embed the XML for it in the
18-
parent XML file, or split it up into either 1 or 2 additional files. You can
19-
break up the HTML configuration into an .xml file in the html directory and an
20-
additional .html file in the same directory.
17+
To add an HTML component to your course, split it up into 2 files: The HTML
18+
configuration into an .xml file in the html directory and an additional .html
19+
file in the same directory.
2120

22-
.. caution:: If you are including HTML that is not valid HTML, you must break
23-
out HTML content in a separate file.
24-
25-
26-
*****************************************************
27-
Example of an HTML Component Embedded in a Vertical
28-
*****************************************************
29-
30-
.. code-block:: xml
31-
32-
<vertical display_name="Lesson_1_Unit_1">
33-
...
34-
<html>The above has an error. <b>x</b> should be <b>y</b> in the second equation.</html>
35-
</vertical>
21+
.. caution::
22+
23+
If you are including HTML that is not valid HTML, you must break out HTML content in a separate file.
3624

3725

3826
*********************************************
39-
Example of Separate HTML Files
27+
Example of XML & HTML Files
4028
*********************************************
4129

4230
You create an XML file in the ``html`` directory for the content that you
@@ -45,24 +33,27 @@ choose to break out into separate HTML files.
4533
The name of the XML file must match the value of the @url_name attribute of the
4634
``html`` element in the vertical XML file.
4735

48-
For example, a vertical XML file contains the following url_name.
36+
For example, the ``vertical/unit_1_what_is_olx.xml`` file contains the following
37+
``url_name``.
4938

5039
.. code-block:: xml
5140
52-
<vertical display_name="Lesson_1_Unit_1">
53-
<html url_name="Introduction"/>
54-
. . .
41+
<vertical display_name="Unit 1: What is OLX?">
42+
<html url_name="what_is_olx"/>
43+
. . .
5544
</vertical>
5645
57-
You create the file ``html/Introduction.xml`` to define the HTML component.
46+
This references the file ``html/what_is_olx.xml`` to define the HTML component.
5847

5948
*************************************
60-
HTML Component XML File Elements
49+
Example HTML Component XML File
6150
*************************************
6251

63-
The root element of the XML file for the HTML component is file is ``html``.
52+
The following example shows the ``html/what_is_olx.xml`` file for an HTML component.
6453

65-
In this case, the ``html`` element contains no children.
54+
.. code-block:: xml
55+
56+
<html filename="what_is_olx" display_name="What is OLX?"/>
6657
6758
*************************************
6859
``html`` Element Attributes
@@ -75,47 +66,39 @@ In this case, the ``html`` element contains no children.
7566
* - Attribute
7667
- Meaning
7768
* - ``display_name``
78-
- Required. The value that is displayed to students as the name of the
69+
- Required. The value that is displayed to learners as the name of the
7970
HTML component. If you do not supply a ``display_name`` value, "html" is
8071
supplied for you.
8172
* - ``filename``
8273
- The name of the HTML file that contains the content for the HTML
8374
component, without the ``.HTML`` extension.
8475

76+
8577
*************************************
86-
Example HTML Component XML File
78+
HTML Component XML File Elements
8779
*************************************
8880

89-
The following example shows an XML file for an HTML component.
90-
91-
.. code-block:: xml
92-
93-
<html filename="Introduction" display_name="Unit Introduction"/>
81+
The root element of the XML file for the HTML component is file is ``html``.
9482

83+
In this case, the ``html`` element contains no children.
9584

9685
*************************************
9786
Example HTML Component Content
9887
*************************************
9988

10089
In the component's HTML file, you add valid HTML to represent the content you
101-
want to be displayed to students. For example, the following is from an HTML
102-
file for the edX Demo course:
90+
want to be displayed to learners. For example, the following is from an HTML
91+
file from the olx_example_course:
10392

10493
.. code-block:: html
10594

106-
<h3>Lesson 2: Let's Get INTERACTIVE!</h3>
107-
<p>
108-
<img
109-
src="/static/interactive_x250.png" alt="Interactive" width="250"
110-
hspace="12" vspace="12" border="0" align="right" />Now that you know your
111-
way around an Open edX course let's look at some of the exciting interactive
112-
tools you may encounter. Use the unit navigation bar above to explore.
113-
&nbsp;</p>
114-
<p>Once you have tried the interactive tools in this lesson,
115-
make sure to check out the week 2 homework where we show you several of the
116-
really cool interactive labs we&rsquo;ve created for past courses.
117-
&nbsp;They&rsquo;re fun to play with. &nbsp;Many courses will have tools
118-
and labs that you need to use to complete homework assignments.</p>
95+
<p><span style="font-size: 1em;">OLX (open learning XML) is the XML-based standard used to build courses for the Open edX Platform.</span></p>
96+
<p><span style="font-size: 1em;">With OLX, you can:</span></p>
97+
<ul>
98+
<li>Move content between Open edX instances.</li>
99+
<li>Create course content outside of Open edX Studio, including by conversion from other content formats.</li>
100+
<li>Ensure content remains free of proprietary encoding and allow portability.</li>
101+
</ul>
119102

120103

121104
.. seealso::
@@ -135,5 +118,5 @@ file for the edX Demo course:
135118
+--------------+-------------------------------+----------------+--------------------------------+
136119
| Review Date | Working Group Reviewer | Release |Test situation |
137120
+--------------+-------------------------------+----------------+--------------------------------+
138-
| | | | |
121+
| 2025-11-06 | sarina | Ulmo | Pass |
139122
+--------------+-------------------------------+----------------+--------------------------------+

source/educators/olx/components/video-components.rst

Lines changed: 65 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ Video Components in OLX
66

77
.. tags:: educator, reference
88

9-
You can add video components to any container in your course (such as
10-
a vertical or sequential). Studio places all video components inside
11-
verticals (which it calls units).
9+
You can add video components to a course unit via the ``video/<video_name>.xml`` file.
1210

1311
.. contents::
1412
:local:
@@ -19,19 +17,23 @@ Create the XML File for a Video Component
1917
**********************************************
2018

2119
To add a video component to your course, add it to the course XML tree as
22-
follows.
20+
follows. This is ``video/purpose_power_reach.xml`` in the olx_example_course.
2321

2422
.. code-block:: xml
2523
2624
<video
27-
youtube="1.00:o2pLltkrhGM"
28-
url_name="Introduction_Lecture"
29-
display_name="Introduction Lecture"
30-
youtube_id_1_0="o2pLltkrhGM">
31-
</video>
25+
youtube="1.00:lVPPPpyUOR4"
26+
url_name="purpose_power_reach"
27+
display_name="The Purpose, Power and Reach of the Open edX® Platform"
28+
edx_video_id=""
29+
end_time="00:00:00"
30+
html5_sources="[]"
31+
start_time="00:00:00"
32+
track=""
33+
youtube_id_1_0="lVPPPpyUOR4"/>
34+
3235
33-
If you prefer to place the video component in its own file, you create an XML
34-
file in the ``video`` directory for each video component in your course.
36+
Place an XML file in the ``video`` directory for each video component in your course.
3537

3638
The name of the XML file must match the value of the @url_name attribute of the
3739
``video`` element in the vertical XML file.
@@ -40,12 +42,12 @@ For example, the vertical XML file uses the following format.
4042

4143
.. code-block:: xml
4244
43-
<vertical display_name="Lesson_1_Unit_1">
44-
<video url_name="Introduction_Lecture"/>
45-
. . .
45+
<vertical display_name="Unit 1: Video">
46+
<video url_name="purpose_power_reach"/>
4647
</vertical>
4748
48-
You create the file ``video/Introduction_Lecture.xml`` to define the video
49+
50+
You create the file ``video/purpose_power_reach.xml`` to define the video
4951
component.
5052

5153
*************************************
@@ -54,24 +56,6 @@ Video Component XML File Elements
5456

5557
The root element of the XML file for the HTML component is file is ``video``.
5658

57-
The ``video`` element contains a single ``source`` element.
58-
59-
==============================
60-
``source`` Element
61-
==============================
62-
63-
The ``source`` element contains the following attribute.
64-
65-
.. list-table::
66-
:widths: 10 70
67-
:header-rows: 1
68-
69-
* - Attribute
70-
- Meaning
71-
* - ``src``
72-
- The file path for the video file.
73-
74-
7559
*************************************
7660
``video`` Element Attributes
7761
*************************************
@@ -83,33 +67,53 @@ The ``source`` element contains the following attribute.
8367
* - Attribute
8468
- Meaning
8569
* - ``display_name``
86-
- Required. The value that is displayed to students as the name of the
87-
video component. If you do not supply a ``display_name`` value, "video"
88-
is supplied for you.
70+
- Required. The value that is displayed to learners as the name of the
71+
video component. If a ``display_name`` is not supplied, "video" will appear to learners.
8972
* - ``youtube``
90-
- The speed and ID pairings for the YouTube video source. The value can
91-
contain multiple speed:ID pairs, separated by commas.
73+
- The speed and 1.0 pairings for the YouTube video source (see Note below)
74+
* - ``youtube_id_1_0``
75+
- The YouTube id for the video
9276
* - ``download_track``
93-
- Whether students can download the video track. ``true`` or ``false``.
77+
- Whether learners can download the video track. ``true`` or ``false``.
9478
* - ``download_video``
95-
- Whether students can download the video. ``true`` or ``false``.
79+
- Whether learners can download the video. ``true`` or ``false``.
9680
* - ``html5_sources``
9781
- The file path for the HTML5 version of the video.
9882
* - ``show_captions``
99-
- Whether students can view the video captions. ``true`` or ``false``.
100-
* - ``source``
83+
- Whether learners can view the video captions. ``true`` or ``false``.
84+
* - ``start_time``
85+
- The HH:MM:SS value of when within the video playback should begin. Defaults to ``00:00:00``
86+
* - ``end_time``
87+
- The HH:MM:SS value of when within the video playback should end. Defaults to ``00:00:00`` (will play whole video)
88+
* - ``track``
10189
- TBD
102-
* - ``sub``
103-
- TBD
104-
* - ``youtube_id_0_75``
105-
- The YouTube ID for the video that plays at 75% normal speed.
106-
* - ``youtube_id_1_0``
107-
- The YouTube ID for the video that plays at 100% normal speed.
108-
* - ``youtube_id_1_25``
109-
- The YouTube ID for the video that plays at 125% normal speed.
110-
* - ``youtube_id_1_5``
111-
- The YouTube ID for the video that plays at 150% normal speed.
90+
* - ``edx_video_id``
91+
- Only used on ``edx.org`` courses. Will be deprecated.
92+
93+
.. note::
94+
95+
For historical reasons, the ``youtube`` attribute requires a speed mapping. Since YouTube introduced the
96+
native ability to speed up/slow down video circa 2014, the speed mapping is no longer required. However, the ``youtube``
97+
attribute still maps the YouTube id to the 1.0 speed as follows:
98+
99+
.. code-block:: xml
100+
101+
youtube="1.00:lVPPPpyUOR4"
102+
103+
==============================
104+
``source`` Element
105+
==============================
112106

107+
The optional ``source`` element contains the following attribute.
108+
109+
.. list-table::
110+
:widths: 10 70
111+
:header-rows: 1
112+
113+
* - Attribute
114+
- Meaning
115+
* - ``src``
116+
- The file path for the video file.
113117

114118
*************************************
115119
Example Video Component XML File
@@ -120,16 +124,15 @@ The following example shows an XML file for a video component.
120124
.. code-block:: xml
121125
122126
<video
123-
youtube="0.75:xGKlr7nT_Zw,1.00:o2pLltkrhGM,1.25:XGsB9bA6rGU,1.50:_HuIF16HdTA"
124-
url_name="Introduction_Lecture"
125-
display_name="Introduction Lecture"
126-
download_video="true"
127-
html5_sources="[&quot;https://s3.amazonaws.com/edx-course-videos/school/DemoCourseIntroductionVideo.mov&quot;]"
128-
source=""
129-
youtube_id_0_75="xGKlr7nT_Zw"
130-
youtube_id_1_0="o2pLltkrhGM"
131-
youtube_id_1_25="XGsB9bA6rGU"
132-
youtube_id_1_5="_HuIF16HdTA">
127+
youtube="1.00:lVPPPpyUOR4"
128+
url_name="purpose_power_reach"
129+
display_name="The Purpose, Power and Reach of the Open edX® Platform"
130+
edx_video_id=""
131+
end_time="00:00:00"
132+
html5_sources="[]"
133+
start_time="00:00:00"
134+
track=""
135+
youtube_id_1_0="lVPPPpyUOR4">
133136
134137
<source src="https://s3.amazonaws.com/edx-course-videos/mit-6002x/6002-Tutorial-00010_100.mov"/>
135138
</video>

0 commit comments

Comments
 (0)