Create the Course Asset Policy in OLX#
You create an asset policy file to provide details of the assets used in your course. Assets can include image files, textbooks, handouts, and supporting JavaScript files.
You must enter policy details for each asset you add to the static
directory. For more information, see Create Course Assets in OLX.
Create the Asset Policy File#
You define policies for your assets in the assets.json
file.
Save the assets.json
file in the policy
directory. You use one
assets.json
file for all of the courses you might have in your directory
structure.
Asset Policy JSON Objects#
contentType
The MIME type of the file.
displayname
The file name.
locked
true
if users can only access the file from within your course.false
if users can access the file from outside of your course.
content_son
A collection that contains: *
category
: Equal toasset
. *name
: The file name. *course
: The course number. *tag
: *org
: The organization that created the course. *revision
filename
The full path and name of the file in the Open edX Platform.
import_path
TBD
thumbnail_location
An array containing: *
c4x
* The organization. * The course number. *thumbnail
* The filename for the thumbnail.
Example Asset Policy File#
The following example shows the JSON policy for one image file.
{
"dashboard.png":
{
"contentType": "image/png",
"displayname": "dashboard.png",
"locked": false,
"content_son":
{
"category": "asset",
"name": "dashboard.png",
"course": "Course number",
"tag": "c4x",
"org": "Organization",
"revision": null
},
"filename": "/c4x/Organization/Course-number/asset/dashboard.png",
"import_path": null,
"thumbnail_location":
[
"c4x",
"Organization",
"Course number",
"thumbnail",
"dashboard.jpg",
null
]
}
}
See also
Add Course Assets (reference)
Course Assets in OLX (how-to)
What is Open Learning XML? (concept)
Example of an OLX Course (reference)
Getting Started with OLX (quickstart)
What is the OLX Course Structure? (reference)
Example of OLX for a Studio Course (reference)
Maintenance chart
Review Date |
Working Group Reviewer |
Release |
Test situation |