Custom Course settings

Custom Course settings

by Kimberley Johnston -
Number of replies: 6

Hi,

Apologies if this is the wrong forum to post this question in. I'm wanting to add some custom settings to my courses in Moodle. I note this question has been asked years ago in previous Moodle versions but I'm wondering if things have changed since reaching 3.4.

I'm wanting to add 5 or 6 custom settings to each course that would then help to create custom navigation systems for each user. I work for a large medical school and our students take a large number of individual courses each year. Each course is either a vertical/block modules or a programme and we have at least 3 seperate teaching campuses. So I'd be wanting to add settings like 'Course type: block, vertical, programme, other', and 'Location: x, y z' among other things. 

I have previously made custom course formats where you can add custom course format settings to the 'Edit settings' page of a course and I'd really like to do a similar thing for General settings without having to hack around with the core code.

Average of ratings: -
In reply to Kimberley Johnston

Re: Custom Course settings

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

You can either do, as you have done previously, and create a course format and add the settings in there

Or there is a plugin - although I dont think its in the database - that allows custom settings to be created on the course page, independent of the course format. I'll try to find the link for you, if I can as I was looking at it a few weeks ago but haven't got around to installing it yet.


Richard

In reply to Richard Oelmann

Re: Custom Course settings

by Kimberley Johnston -

 Thanks Richard that's much appreciated. Just to clarify - with the course format that adds settings to the Course Format portion of the settings - correct? I was hoping if possible to get them into the General settings or their own section. 

I better get searching for this plugin too.

In reply to Kimberley Johnston

Re: Custom Course settings

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

You could also use categories to separate the courses out that way...

In reply to Emma Richardson

Re: Custom Course settings

by Kimberley Johnston -

I had thought about that and may investigate further. What I'm hoping to improve is about 18 hand coded labels that sit on the front page containing a table of each cohorts courses.

I've attached a screenshot of what I'm trying to improve - ideally in the end there will just be 1 table created on the fly for each user. We also have hand coded top navigation which is also dynamically create if the extra meta data was available. 

The meta data I envisage needing is:

  • Campus (4 locations )
  • Year being taught  (2017, 2018 etc)
  • Teaching year (2,3,4,5,6)
  • Course type (vertical, block, programme, other)

Some courses need to appear in multiple tables - hence my thought about classifying them by data in their settings so instructors etc could manage this themselves (could be carnage I know).


Attachment Screen Shot 2017-11-24 at 3.09.15 PM.png
In reply to Kimberley Johnston

Re: Custom Course settings

by Gareth Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi Kimberley,

I don't believe that you can add to 'General settings' as that's fixed in '/course/edit_form.php' but you can add a new section underneath 'Course format' in the course format itself.  Collapsed Topics and the Grid format do this for the 'Reset' functionality, its a bit more complex than adding a setting to the 'Course format' section but possible.

Gareth