Moodle 3.7 Course Images

Moodle 3.7 Course Images

by Dave Emsley -
Number of replies: 4

Hi All,

When creating a course there's an option for course images to be uploaded; which is great.

However I cannot find out where they are kept - they're certainly not in the course->summary or anywhere else I've looked.  If someone could point me in the right direction as I'm trying to code something with a course list with these specific images.

Cheers


Dave


Average of ratings: -
In reply to Dave Emsley

Re: Moodle 3.7 Course Images

by Neill Magill -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
You probably want to access them via the core_course_list_element class
Average of ratings: Useful (1)
In reply to Neill Magill

Re: Moodle 3.7 Course Images

by Dave Emsley -
Hi Neill, Tried that but I couldn't get it to work from my local/plugin.  I wanted to send the context to get the files for a specific course.

I've resolved it by doing it "manually".

Cheers

Dave
In reply to Dave Emsley

Re: Moodle 3.7 Course Images

by Simon Lewis -
There's function to get the course files on this page:
https://github.com/roelmann/moodle-theme_flexibase/blob/master/layout/includes/courseimage.php
I used it in a block and it works ok for me, not sure if it's your needs or not.
Average of ratings: Useful (1)