Closed michael-milette closed 1 year ago
Pull request #154 addresses this issue. It includes a new setting in the Trema theme's Content tab (bottom of the list):
IMPORTANT: The Moodle search engine will still be able to find the courses in hidden categories when this option is enabled. Until a fix is implemented for Moodle Tracker ticket MDL-52810, Moodle admins will need to apply the patch at https://github.com/michael-milette/moodle/tree/MDL-52810-M400 to prevent courses from appearing in the search results.
Best regards,
Michael
Thank you @rmady for integrating this new feature.
While some people may find this desirable, I would like to propose that a new theme setting be added in Trema which would enable Site Administrators to filter out courses located in a hidden categories from course listings on the Front Page and in Category listings.
Use case
An organization has released an updated version of an existing course that goes by the same full name as the previous release (only short names need to be unique). However, there are some existing students who have yet to finish the previous version of the course. In order to smooth the transition, the old version of the course needs to continue to be set to Show. However, the old course can be moved to a hidden category in order to prevent it from appearing in course listings. It is desirable to only have the latest version of the course displayed for new enrolments in course listings to prevent any confusion.
More information
For more information and discussion on this topic, as well as a Moodle core patch that removes hidden courses from search results, see https://tracker.moodle.org/browse/MDL-52810
Let me know if you have any questions.
Best regards,
Michael