Paragraphs module compatibility

Created on 6 September 2022, almost 2 years ago
Updated 6 October 2023, 9 months ago

Problem/Motivation

Using the upload widget doesn't seem to work when used inside the Paragraphs module. This is almost same as on 1.x branch 🐛 H5P content lost when collapsing/opening in Paragraphs Active

Steps to reproduce

1. Add H5P field inside Paragraphs component. Set field to use Upload widget.
2. Create node with Paragraphs with H5P field, save the node.
3. H5P file is not uploaded due to parent element validation in src/Plugin/Field/FieldWidget/H5PUploadWidget.php

Proposed resolution

Match the validation better.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇫🇮Finland sokru

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇫🇮Finland jhuhta

    #2 was not quite enough. The problem with the Paragraphs use seems to be that the H5P module expects the field name to be unique, and that's not the case if H5P is a paragraph type. This patch should fix it.

    This one also contains an idea from 📌 Indication of uploaded .h5p file RTBC , but it didn't quite work standalone without this one either.

Production build 0.69.0 2024