Moodle Plugins directory: Course Search: Versions: 1.0.0 | Moodle.org
Course Search
Course Search 1.0.0
Course Search Module for Moodle
A comprehensive Moodle activity module that enables teachers to add a search bar to courses, allowing students to search through course content with automatic highlighting of search terms.
Features
Core Search Functionality
- Comprehensive Search: Searches through all course content types
- Search Filter: Filter between "All content" or "Forums only" on the search page
- Embedded Mode: Option to embed search bar directly in course page
Search Term Highlighting
- Automatic Scrolling: Automatically scrolls to matched content when clicking search results
- Visual Highlighting: Highlights search terms with a yellow background for 3 seconds
- Smart Fallback: If direct text highlighting fails (e.g., text inside links), highlights the parent element
- Works on Course Pages: Highlighting works for labels, pages, sections, and other content displayed on the course page
- Accordion Support: Automatically expands Bootstrap accordions/collapsible sections to reveal and highlight text inside
Admin Settings
- Enable/Disable Highlighting: Global setting to turn scrolling and highlighting on or off (Site Administration > Plugins > Activity modules > Course Search)
Supported Content Types
The search covers the following content types:
Course Structure
- Course Sections (names and summaries)
- Activity and resource titles
- Descriptions and introductions
Activities & Resources
- Pages (mod_page) - title and content
- Books (mod_book) - chapter titles and content
- Labels (mod_label) - content
- Forums (mod_forum) - discussions and posts
- Wiki (mod_wiki) - page titles and content
- Lessons (mod_lesson) - page titles and content
- Glossary (mod_glossary) - terms and definitions
- Database (mod_data) - field content
- H5P Interactive Content (mod_hvp) - text content from all H5P types (Accordion, Course Presentation, Quiz, etc.)
- Folders (mod_folder) - file names
Requirements
- Moodle: 4.4 or higher
- PHP: 7.4 or higher
- Browser: Modern browser with JavaScript enabled
Installation
Method 1: Via Moodle Admin Interface (Recommended)
- Download
mod_coursesearch.zip - Log in to Moodle as administrator
- Navigate to: Site administration -> Plugins -> Install plugins
- Click "Choose a file" and upload
mod_coursesearch.zip - Click "Install plugin from the ZIP file"
- Review the validation report and click "Continue"
- Follow the on-screen prompts to complete installation
Method 2: Manual Installation
- Extract the
mod_coursesearch.zipfile - Upload the
coursesearchfolder to/path/to/moodle/mod/ - Set proper permissions:
chown -R www-data:www-data coursesearch - Visit Site administration -> Notifications
- Follow the upgrade prompts
Usage
Adding to a Course
- Navigate to your course
- Turn editing on
- Click "Add an activity or resource"
- Select "Course Search"
- Configure settings:
- Name: Display name for the search activity
- Description: Optional introduction text
- Embedded mode: Enable to show search form inline on course page
- Save and display
Supported Languages
- English
- German
- Ukrainian
Searching
- Open the Course Search activity (or use the embedded search bar)
- Enter search terms
- Select filter: "All" or "Forums only"
- Click "Search"
- Click on any result to navigate to the content
Highlighting (Course Page Content)
When clicking on search results that link to course page content (labels, pages, sections): - The page automatically scrolls to the matched text - The text is highlighted with a yellow background for 3 seconds - Bootstrap accordions/collapsible sections are automatically expanded if the text is inside
Note: Highlighting only works on course pages. Results linking to external pages (Book chapters, Wiki pages, Glossary entries, Database records, H5P activities) will navigate directly to the content without highlighting.
Performance
- JavaScript only loads when needed (when
highlightparameter is present) - AMD modules are lazy-loaded by Moodle
- Client-side highlighting only
- Minimal impact on page load
Troubleshooting
Highlighting doesn't work
- Clear browser cache (Ctrl+Shift+Delete)
- Purge Moodle caches: Site administration -> Development -> Purge all caches
- Ensure JavaScript is enabled
- Note: Highlighting only works on course pages, not on Book/Wiki/Glossary/etc. pages
No search results
- Verify content is visible to the user
- Try different search terms
- Check if the content type is supported
Version
Current version: 1.0.0 (Stable)
License
This plugin is licensed under the GNU GPL v3 or later.
Credits
Original plugin: Yurii Lysak (2025) Enhancements: HNEE (Hochschule für nachhaltige Entwicklung Eberswalde) - December 2025
Support
For issues, feature requests, or contributions, please contact your Moodle administrator.
Version information
- Version build number
- 2025121601
- Version release name
- 1.0.0
- Maturity
- Release candidate
- MD5 Sum
- 0aa40ba7db5588095265322a3370bd0d
- Supported software
- Moodle 4.4, Moodle 4.5, Moodle 5.0, Moodle 5.1
- Latest release for Moodle 4.4
- Latest release for Moodle 4.5
- Latest release for Moodle 5.0
- Latest release for Moodle 5.1
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL
Default installation instructions for plugins of the type Activities
- Make sure you have all the required versions.
- Download and unpack the module.
- Place the folder (eg "assignment") in the "mod" subdirectory.
- Visit http://yoursite.com/admin to finish the installation