How to setup an image header in each course?

How to setup an image header in each course?

by Luciano Ferrer -
Number of replies: 3

Hi there!

I have been searching for a way to add an image header in each course, instead the regular course title... but did not find a way to do it...

Is the only way to make a custom code in the template, showing the image?
If it is that... we will need 1 template for each course.... ufff

The regular options seems to be adding an image in course resume (but that is only showed a the course listing)...

We are using moodle 3.6.2 at this moment...

Any idea, suggestion, something?

Thanks a lot, and sorry for the bad english C-:


Average of ratings: -
In reply to Luciano Ferrer

Re: How to setup an image header in each course?

by David Saylor -
I think you'll need custom code.

How I would do it:
Using a plugin, I would extend the settings menu for the course and add a setting to store the course's banner image (there's a function for this you can use to extend the options). I would use a theme to override the header in the core_renderer to check if the page is a course and if so, load the config where the image is saved and display it.

Let me know if this doesn't have enough detail, I may be able to swing back some time later and update with specifics.
In reply to David Saylor

Re: How to setup an image header in each course?

by Luciano Ferrer -
Thanks David!
I understand what you said... but I have no idea how to acomplish it (I am not a programmer, etc)... should I do the plugin? or is it using an existing plugin
/-: