exclusive theme for 1 course

exclusive theme for 1 course

by Thomas Korner -
Number of replies: 5
Picture of Plugin developers Picture of Testers
Hi there
Is there a possibility to exclude a theme from the list of available themes for all but 1 course?

We have some theme developers who want to use their themes exclusively.

Regards and many thanks
Thomas
Average of ratings: -
In reply to Thomas Korner

Re: exclusive theme for 1 course

by Patrick Malley -
My understanding is that themes can be either made available to all courses, or not. Making a theme available to only one course is not an option.
In reply to Thomas Korner

Re: exclusive theme for 1 course

by Dave Townend -
Thomas

This is possible though requires access to the database using something like phpMyAdmin and Admin access to Moodle itself:

1. Add the theme folder as you normally would to the installation on the server

2. In Moodle, in Theme Settings, add the names of all of the themes you want to be available to the whole site (this hides the 'special' theme from the site) in a list with commas between them

3. In the mdl_courses table search for the course you want the 'special' theme on. Edit it and change the theme name to its special one and save.

And that's it! The one course will have its own theme which won't be available to the rest of the site.

We use this a lot on http://moodle.grimsby.ac.uk for Moodle courses which are non-teaching resource courses and also when we have a custom homepage (as we have at the moment) which we restrict to the homepages

Hope that helps?
In reply to Dave Townend

Re: exclusive theme for 1 course

by Thomas Korner -
Picture of Plugin developers Picture of Testers
Dear Dave
Thank you very much. it helps! We've checked your way and it works. We've ascertained a way to avoid database manipulation:

>1. Add the theme folder as you normally would to the installation on the server
>
>2. In Moodle, in Theme Settings, add the names of all of the themes you want to be available to the whole site (this hides the 'special' theme from the site) in a list with commas between them

This could be done once.

If there is a new course with its own theme:

3a. add the theme's name to the list in Theme Settings.

3b. go to the course and select the theme (force theme)

3c. remove the theme's name from the list in Theme Settings. The course will still use the theme altough it isn't on the list anymore.


Thomas
Average of ratings: Useful (1)