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:

  1. Go to course or course category.
  2. On the quick links menu click the "Cpntent parts" link .
  3. Click the "New content part" button.

Add content part to a course

To add content part to a course:

  1. Copy a shortcode of a content part .
  2. Go to course.
  3. Add the "Text and media area" resource .
  4. 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:

  1. Copy a shortcode of a content part .
  2. Turn editing ON .
  3. Find the "Add a block" element and select the "Text" or "HTML" (in older versions of Moodle) block.
  4. 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:

  1. Go to: Site administration > Users > Permissions > Define roles.
  2. Edit role.
  3. Find the: "local/mb2builder:manageparts" capability and set permission to ALLOW .