Content parts
On this page:
Description
Content parts is a feature that allows administrators, managers and selected users to build custom content with the page builder and then use it anywhere they want, by adding a simple shortcode:
[mb2part id="x"]
where "x" is the unique ID of a content part.
Create content part
To create a content part:
- Go to course or course category.
- On the quick links menu click the "Cpntent parts" link .
- Click the "New content part" button.
Add content part to a course
To add content part to a course:
- Copy a shortcode of a content part .
- Go to course.
- Add the "Text and media area" resource .
- Paste a content part shortcode into the "Text" area.
It's NOT recommended to add a content part shortcode to: course description, category description, section description.
Add content part to the site
To add content part to the site:
- Copy a shortcode of a content part .
- Turn editing ON .
- Find the "Add a block" element and select the "Text" or "HTML" (in older versions of Moodle) block.
- Configure a new text block and paste a content part shortcode into the "Content" area.
Content part management permissions
To add users (e.g. teachers) permission to use content parts: