dbnschools / moodle-theme_fordson

Theme for Moodle 3.3+
43 stars 40 forks source link

Course custom fields #88

Closed sus16cn closed 5 years ago

sus16cn commented 5 years ago

Hi,

Greetings from Germany and many thanks for your great work!

One question, since Moodle 3.7, there are 'course custom fields', but these are not displayed, here is an example from the moodle docs: https://docs.moodle.org/37/en/File:DocsCourseCustomFields_IndexView.png in this example, the following fields: "Estimated duration" "Mandatory"

By now, there are many infos, such as teacher, course-summary, enrollment … Unfortunately there is not much place, maybe a clickable "i" would be great, see picture.

Kind regards, Susi

info

dbnschools commented 5 years ago

We haven't fully looked at utilizing custom fields yet. We are beginning to do so but I don't have an estimate on when Fordson will support it.

sus16cn commented 5 years ago

ok, no problem for me

sus16cn commented 5 years ago

sorry :)

dbnschools commented 5 years ago

I took a quick look today. Initially, I think I know how to do this. I've added it to each of the 8 or 9 different course tile displays in code. I need to test it visually and see what makes sense because some of the course tiles might look funny with custom fields displayed.

dbnschools commented 5 years ago

Try this file. replace the existing file at fordson/classes/output/core/course_renderer.php It should display custom fields in course listings/directory.
remove the .txt

course_renderer.php.txt

sus16cn commented 5 years ago

it works! that was very fast :) Thank you!

dbnschools commented 5 years ago

Thanks. The new version is about to be released with this fix and I am closing it.