Skip to content

How to change default value of "embed_type" for better CSS styling options. #35

@M-Kuenstler

Description

@M-Kuenstler

Hello there,

all h5p content objects has the embed_type set to "iframe". How can I change the default value to "div"?

Why am I asking
I want to apply custom CSS styles for some h5p modules. The embed_type config option handles the html output:

  • "iframe" = Your h5p content is rendered in an <iframe>. This means, you can only style in a very complicated way (via files stored in fileadmin) and with every update, your custom styles are gone.
  • "div" = Your h5p content is rendered in an <div>. With this option, you can simply overwrite the h5p styles in your Extension/Theme

What I tried so far
I tried to set the default value via TCA and via "ext_tables.sql", but it didn't work.
I even tried to overwrite the h5pCore Method "determineEmbedType" in public\typo3conf\ext\h5p\Resources\Public\Lib\h5p-core\h5p.classes.php, but this also didn't work.

I know, that I can change this value by hand. But it is not very comfortable for our customers.
Can anybody give me a hint, how to change default value for "embed_type" ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions