Moodle 3.7 Course Images

Moodle 3.7 Course Images

von Dave Emsley -
Anzahl Antworten: 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


Als Antwort auf Dave Emsley

Re: Moodle 3.7 Course Images

von Neill Magill -
Nutzerbild von Core developers Nutzerbild von Peer reviewers Nutzerbild von Plugin developers
You probably want to access them via the core_course_list_element class
Als Antwort auf Neill Magill

Re: Moodle 3.7 Course Images

von 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
Als Antwort auf Dave Emsley

Re: Moodle 3.7 Course Images

von 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.