---
description: Site administration -> Courses -> Default settings -> Course custom fields
---

# Course Filter

How it works?

Based on Moodle Custom Course Fields and JS. It based on default moodle course page, but extend it to simple course filter. URL: /course/

### 1. Add a Course custom fields

Define additional fields that can be used for filtering courses. This allows for a more tailored search experience based on user-defined parameters.

{% hint style="info" %}
**Site administration → Courses → Course custom fields**\
You can choose from several field types: checkbox, dropdown menu, number, short text, or textarea.
{% endhint %}

<figure><img src="https://1311400754-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcJfqRdcYy9miFgmqjVBk%2Fuploads%2FShA3PjVK5P4lWBd88Sh7%2Fmoodle-course-filter.png?alt=media&#x26;token=db601354-141f-4073-86f9-84954893aaa9" alt=""><figcaption></figcaption></figure>

***

#### [Multi-language support - Moodle Doc](https://docs.moodle.org/500/en/Multi-language_content_filter) <a href="#multi-language-support" id="multi-language-support"></a>

**Example:**\
It's important not to use line breaks (Enter) between each translation.

<figure><img src="https://rosea.gitbook.io/~gitbook/image?url=https%3A%2F%2F2303389692-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FFXzbdpVhyxdIy0lIThMp%252Fuploads%252FsLpiB8B5L55y6MFKHprA%252F5700369709.png%3Falt%3Dmedia%26token%3De5b2f239-cc05-44a1-bf2e-c97a33769eba&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=1a79444d&#x26;sv=2" alt=""><figcaption></figcaption></figure>

### **2. Add a Custom Field to the Filter**

Go to **XY → Course Filter** and enter your custom field name.

<figure><img src="https://1311400754-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcJfqRdcYy9miFgmqjVBk%2Fuploads%2FoDH7zxx8FuFLtLhiYS26%2FZrzut%20ekranu%202025-07-1%20o%2012.13.49.png?alt=media&#x26;token=26c73a09-4285-435a-ba3b-3fbbabf07f46" alt=""><figcaption></figcaption></figure>

1. Enable Filter #1
2. Add course custom field shortanem
3. Save
