Tuurlijk / t3ext-h5p

TYPO3 H5P plugin
7 stars 16 forks source link

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

Open M-Kuenstler opened 2 years ago

M-Kuenstler commented 2 years ago

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:

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" ?