Totara Learn Open Discussions

Adding a block to a page globally

 
PIsabelle
Adding a block to a page globally
PIsabelle 发表于 2025年06月23日 Monday 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!

KurikovaNatalia
Re: Adding a block to a page globally
KurikovaNatalia 发表于 2025年06月23日 Monday 17:51
小组 Helpful contributor 2024小组 Learn Site Administrator小组 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.

PIsabelle
Re: Adding a block to a page globally
PIsabelle 发表于 2025年06月24日 Tuesday 12:10
 

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

Blessings,

Isabelle