How to add a sticky block (HTML) through all main course pages

How to add a sticky block (HTML) through all main course pages

by Susana L. -
Number of replies: 2

Does anyone know how to add a sticky block to all course main pages on Moodle 2.6?

I was able to do it on Moodle 2.4 (2.2 and 1.9 too), but not anymore on 2.6 sad

We need to show a warning to teachers about importing courses and we want it to be displayed on every course main page.

Does anyone know how to do it?

Thank you,

susana 

Average of ratings: -
In reply to Susana L.

Re: How to add a sticky block (HTML) through all main course pages

by William Lu -
Picture of Particularly helpful Moodlers

The term 'sticky block' was used in older versions of Moodle...Since the arrival of Moodle 2, it is possible to 'fix' blocks in a variety of locations. (http://docs.moodle.org/27/en/Sticky_blocks)

You can do it better and easier than 'Sticky'.

  1. Start from the 'Front page' yoursite/moodle,
  2. Front page settings > Turn editing on
  3. 'ADD A BLOCK' or Click the 'Cog' icon to configure your block, Page contexts=Display throungour entrie site. (P1)
  4. If you don't want this block appeared on the front page, set to No.  (P2)

p1&2


If you don't want the guest role to view this block:

1.Click 'Assign roles in xxx block' (P3)

2.You will see 'You are not able to assign any roles here', just ignore it. (P4)

3.Looking for Permissions from the Adminstration block, under 'Assign roles' (P5)

4.In 'Advance role override' select 'Guest' View block to 'Prevent' (P6)

p3-6

HTH, if so, please rate. Thanks smile

Average of ratings: Useful (1)
In reply to Susana L.

Re: How to add a sticky block (HTML) through all main course pages

by Susana L. -

Hi William,

Thank you for your input.

This is what I did:

Create an html block on system context (for instances on search course page) make it viewable on every page. On a moodle course edit that same block and make it viewable on course main page only. 

Average of ratings: Useful (1)