---
title: "Joomla Form field for displaying a list of Moodle courses. JMoodle library - WebTolk websites development, Joomla Extensions"
description: "Joomla Form is a field for use in XML forms of Joomla extensions. Displays a select-option drop-down list with a list of Moodle courses received via the REST API."
url: "https://web-tolk.ru/en/dev/biblioteki/wt-jmoodle-library-for-cms-joomla-and-lms-moodle-rest-api-connection/documentation/courseslist-joomla-form-field"
date: "2026-06-14T06:19:53+00:00"
language: "en-GB"
---

# Courseslist Joomla Form field

WT JMoodle library - Documentation

**Category:** [Libraries](https://web-tolk.ru/en/dev/biblioteki)

[Project](https://web-tolk.ru/en/dev/biblioteki/wt-jmoodle-library-for-cms-joomla-and-lms-moodle-rest-api-connection)[Versions](https://web-tolk.ru/en/dev/biblioteki/wt-jmoodle-library-for-cms-joomla-and-lms-moodle-rest-api-connection/versions)[Documentation](https://web-tolk.ru/en/dev/biblioteki/wt-jmoodle-library-for-cms-joomla-and-lms-moodle-rest-api-connection/documentation)[GitHub](https://github.com/WebTolk/WT-JMoodle-library)[JED](https://extensions.joomla.org/extension/core-enhancements/coding-a-scripts-integration/wt-jmoodle-library/)

Joomla Form is a field for use in XML forms of Joomla extensions. Displays a select-option drop-down list with a list of Moodle courses.

## The Moodle REST API method

The field uses the `core_course_get_courses` Moodle REST API method.

## Access rights

Required access rights for the `core_course_get_courses` method to work:

- `moodle/course:view`
- `moodle/course:update`
- `moodle/course:viewhiddencourses`

## Attributes

You can use all the standard attributes for Joomla fields of the `list` type, such as `multiple`, `class`, `parentclass`, `layout`, etc.

### course_ids

The `core_course_get_courses` method supports the optional `course_ids` parameter, which allows you to specify a list of course IDs. If the parameter is empty, a list of all courses is displayed, except for the course for the main page.

Specify the list of ids separated by commas: `course_ids="1,8"`.

## Example code

```
<field addfieldprefix="Webtolk\JMoodle\Fields"
                       type="courseslist"
                       name="course_id"
                       course_ids="1,8"
                       multiple="true"
                       layout="joomla.form.field.list-fancy-select"
                       label="Course Ids"
                       description="Select Moodle coursees"/>
```

## JSON-LD Schema

```json
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "@id": "https://web-tolk.ru/#/schema/BreadcrumbList/17",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "item": {
                "@id": "https://web-tolk.ru/en",
                "name": "Home"
            }
        },
        {
            "@type": "ListItem",
            "position": 2,
            "item": {
                "@id": "https://web-tolk.ru/en/dev",
                "name": "Joomla extensions"
            }
        },
        {
            "@type": "ListItem",
            "position": 3,
            "item": {
                "@id": "/en/dev/biblioteki",
                "name": "Libraries"
            }
        },
        {
            "@type": "ListItem",
            "position": 4,
            "item": {
                "@id": "/en/dev/biblioteki/wt-jmoodle-library-for-cms-joomla-and-lms-moodle-rest-api-connection",
                "name": "WT JMoodle library"
            }
        },
        {
            "@type": "ListItem",
            "position": 5,
            "item": {
                "@id": "/en/dev/biblioteki/wt-jmoodle-library-for-cms-joomla-and-lms-moodle-rest-api-connection/documentation",
                "name": "Documentation"
            }
        },
        {
            "@type": "ListItem",
            "position": 6,
            "item": {
                "name": "Courseslist Joomla Form field"
            }
        }
    ]
}
```

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Organization",
            "@id": "https://web-tolk.ru/#/schema/Organization/base",
            "name": "WebTolk",
            "url": "https://web-tolk.ru/",
            "logo": {
                "@type": "ImageObject",
                "@id": "https://web-tolk.ru/#/schema/ImageObject/logo",
                "url": "images/webtolk-1080p.jpg",
                "contentUrl": "images/webtolk-1080p.jpg",
                "width": 1920,
                "height": 1080
            },
            "image": {
                "@id": "https://web-tolk.ru/#/schema/ImageObject/logo"
            },
            "sameAs": [
                "https://github.com/WebTolk",
                "https://github.com/sergeytolkachyov",
                "https://vk.com/web_tolk",
                "https://vk.com/webtolkru",
                "https://tenchat.ru/sergeytolkachyov",
                "https://t.me/sergeytolkachyov",
                "https://t.me/webtolkru"
            ]
        },
        {
            "@type": "WebSite",
            "@id": "https://web-tolk.ru/#/schema/WebSite/base",
            "url": "https://web-tolk.ru/",
            "name": "WebTolk websites development, Joomla Extensions",
            "publisher": {
                "@id": "https://web-tolk.ru/#/schema/Organization/base"
            }
        },
        {
            "@type": "WebPage",
            "@id": "https://web-tolk.ru/#/schema/WebPage/base",
            "url": "https://web-tolk.ru/en/dev/biblioteki/wt-jmoodle-library-for-cms-joomla-and-lms-moodle-rest-api-connection/documentation/courseslist-joomla-form-field",
            "name": "Joomla Form field for displaying a list of Moodle courses. JMoodle library - WebTolk websites development, Joomla Extensions",
            "description": "Joomla Form is a field for use in XML forms of Joomla extensions. Displays a select-option drop-down list with a list of Moodle courses received via the REST API.",
            "isPartOf": {
                "@id": "https://web-tolk.ru/#/schema/WebSite/base"
            },
            "about": {
                "@id": "https://web-tolk.ru/#/schema/TechArticle/base"
            },
            "inLanguage": "en-GB",
            "breadcrumb": {
                "@id": "https://web-tolk.ru/#/schema/BreadcrumbList/17"
            }
        },
        {
            "@type": "TechArticle",
            "headline": "Courseslist Joomla Form field",
            "url": "https://web-tolk.ru/en/dev/biblioteki/wt-jmoodle-library-for-cms-joomla-and-lms-moodle-rest-api-connection/documentation/courseslist-joomla-form-field",
            "description": "Joomla Form is a field for use in XML forms of Joomla extensions. Displays a select-option drop-down list with a list of Moodle courses.",
            "mainEntityOfPage": {
                "@type": "WebPage",
                "url": "https://web-tolk.ru/en/dev/biblioteki/wt-jmoodle-library-for-cms-joomla-and-lms-moodle-rest-api-connection/documentation/courseslist-joomla-form-field"
            }
        }
    ]
}
```
