Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Sticky blocks.

Sticky blocks

From MoodleDocs

Location: Administration > Modules > Blocks > Sticky blocks

or Administration > Appearance > Sticky blocks (in 1.8)

A sticky block is a block set on the site level which can force the block to appear on all course pages and/or on users' My Moodle pages. In Moodle 2.0 onwards, sticky blocks may be added to almost any page in Moodle.

Sticky blocks set-up

To configure sticky blocks:

  1. Open the site administration block Modules > Blocks > Sticky blocks (Administration > Appearance > Sticky blocks in 1.8).
  2. Choose whether to configure My Moodle or course pages.
  3. Please note that you can add a sticky block to either My Moodle or course pages or to both.
  4. Select the required blocks from the "Add a block" dropdown menu. Configure each block as desired.
  5. Reposition blocks using the arrow icons in the block headers.

Sticky blocks in Moodle 2.0

Moodle 2.0

Sticky blocks may be added to My home in Moodle 2.0 via Site administration > Appearance > Default My Moodle page.

To add a sticky block to a course page:

  1. Add the block to the front page.
  2. In the block settings set 'Page contexts' to 'Display throughout entire site'.
  3. Browse to any course (other than the front page course) and then in the block settings change 'Restrict to these page types' to 'course-* (Any course page)'.

Tips and tricks

  • Sticky blocks may be used for site-wide messages.
  • Sticky blocks may be used for small applications.
  • If you add a block which is already present in a particular course page or My Moodle page then it will result in a duplicate block.
  • Course pages contain a number of blocks by default.

See also

Tracker, current work in March 2010: User friendly block settings and help information

See also

  • Block layout contains information on how to set up default blocks for new courses without making them sticky (non-movable).