Totara Learn Open Discussions

Adding a block to a page globally

 
Isabelle Perdew
Adding a block to a page globally
di Isabelle Perdew - Monday, 23 June 2025, 10:37
 

Is there a way to add the same block to each page of the same type without adding it to each page manually?

For example, I'd like to add an HTML block the page that opens when you click on a SCORM activity (page shown below), and I'd like the block to appear for every SCORM activity in our LMS (and to be automatically included as new activities are created). Is there a way to accomplish this?

Thank you!

Natalia Kurikova
Re: Adding a block to a page globally
di Natalia Kurikova - Monday, 23 June 2025, 17:51
Gruppo Helpful contributor 2024Gruppo Learn Site AdministratorGruppo Most helpful contributor 2023

Hi Isabelle

I was able to achieve something similar in the past by adding such a block to site front page (/admin/settings.php?section=frontpagesettings), and updating its settings to display site-wide ("Where this block appears - all site"). Then going to the activity and selecting "Where the block appears - in scorm" in block settings.

Note that if you delete the block from any scorm page, it'll have to be re-addded (I ended up tweaking permissions to ensure it wasn't deleted accidentally after I had to recreate it a few times).

I did it with the activities block and added it like that to all course main pages, but I'm pretty sure the same approach will apply to HTML block in SCORMs.

Isabelle Perdew
Re: Adding a block to a page globally
di Isabelle Perdew - Tuesday, 24 June 2025, 12:10
 

Thank you so much, Natalia! Your method allowed me to do exactly what I'd hoped for.

Blessings,

Isabelle