How to Enable XBlocks in an Open edX Course
Enable Advanced Interactive Components in Open edX Studio
How do I add an XBlock to a course in Open edX?
The XBlock specification is an open component architecture designed to extend the core authoring features of Open edX. By enabling specific XBlocks, you can add custom educational assets, interactive labs, third-party integrations, or specialized collaborative modules to your course units.
To use an XBlock, you must first register its unique identifier string at the course level. Once registered, the block becomes accessible within the unit authoring workspace.
Tip: Ensure you are logged into Open edX Studio with appropriate Admin or Staff permissions before proceeding.
How do I register an XBlock in Advanced Settings?
Every XBlock has a specific, unique string identifier that must be declared in your course configuration data.
Procedures:
- Open your course run in Studio.
- From the Settings menu in the top navigation bar, select Advanced Settings.
- Locate the Advanced Module List field near the top of the configurations page.
- Inside the square brackets
[ ], enter the exact XBlock identifier string wrapped in straight quotation marks (e.g.,"done"for the Completion/Done XBlock, or"lti_consumer"for LTI tools).- Note: If multiple XBlocks are required, separate each unique string with a comma (e.g.,
["done", "lti_consumer", "ubc_peer_assessment"]).
- Note: If multiple XBlocks are required, separate each unique string with a comma (e.g.,
- Click the Save Changes button that appears at the bottom of your screen.
Step 2: Embed the XBlock into a Unit
After saving your Advanced Settings, navigate to the target unit, click Add New Component > Advanced, and select the XBlock by name to add it to the unit canvas.
- Navigate back to your Course Outline and open the specific Unit where you want to add the XBlock.
- Scroll down to the Add New Component selection bar at the bottom of the workspace.
- Click the Advanced tile.
- A submenu will expand displaying all the XBlocks you registered in Step 1. Click the name of the XBlock you want to add (e.g., Completion or LTI Consumer) to insert it into the unit.
- Once the component appears on the canvas, click its Edit button to open the configuration window and complete the required settings for that block.
How do I configure a component block?
While every specialized XBlock features unique input properties, all blocks share a standardized administrative control tray within the Unit Editor:
- Edit: Launches the primary configuration window to customize the block's content, titles, or source API keys.
- Settings: Manage visibility permissions (e.g., restricting the block to specific Content Groups or Cohorts).
- Duplicate: Creates an exact replica of the component block and its saved settings directly below it.
- Move: Shifts the block to a completely different Unit, Subsection, or Section within the course run structure.
- Delete (Trash icon): Removes the component from the unit canvas.
Once your configurations are complete, click the Publish button in the right-hand unit status panel to make the new features visible to learners in the LMS.