Accordion Does Not Allow Choice of Content Type

  1. When creating an Accordion, there are no options in the "Content Type" dropdown.
  2. Moodle Version 3.4
  3. Desktop
  4. Browser: Chrome, and Firefox
  5. H5P plugin version 1.9

Please see screenshot at https://www.screencast.com/t/doSopSax

BV52's picture

Hi David,

I'm sorry I'm a bit confused with the screenshot and the question. The Accordion content is a "text" only content. The screenshot of the editor that you attached looks like Accordion but with some features from Column. Therefore it is an expected behavior that there are no content choices in Accordion. Did you or anyone made changes to the code of this content?

-BV52

fnoks's picture

Hi,

For me it seems your site is missing the library H5P.AdvancedText. Can you check on the "H5P libraries" page if you can see it there? If so, which versions of AdvancedText and Accordion do you have? Also make sure AdvancedText is not restricted.

learntube's picture

Hi there,

we have created a typo3 integration for h5p and looking into same issue on our side. form data getting like
libraries[0][name]: H5P.AdvancedText 1.1
and not like
libraries[]: H5P.AdvancedText 1.1

We dont know why.

Greets Stefan

learntube's picture

The issue seems with Accordion library

{
          "name": "content",
          "type": "library",
          "label": "Content type",
          "importance": "medium",
          "entity": "content",
          "options": [
            {
              "name": "H5P.AdvancedText 1.1"
            }
          ]
        }

Diff

{
          "name": "content",
          "type": "library",
          "label": "Content type",
          "importance": "medium",
          "entity": "content",
          "options": [
            "H5P.AdvancedText 1.1"
          ]
        }


the extra name coming from newer version of Accordion library semantic options.

Can anyone confirm this?

Greets

Stefan

fnoks's picture

Hi,

This should now be fixed. A new version of H5P.Accordion, H5P.StandardPage and H5P.ImageHotspots have been released. No other content types should be affected. For your convenience, I have attached an H5P package containing these 3 libraries.