[TASK] Use dedicated database field for `textmedia` media references 28/44228/6
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 23 Oct 2015 14:31:11 +0000 (16:31 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 24 Oct 2015 16:07:19 +0000 (18:07 +0200)
commit191a017d96817124ddb94651d26860bdabc736f1
tree2b4dd0624088c3d3112fc1661e5eab93c970d03f
parentf40830234c5f65b5b256130fca27645b6dc04a51
[TASK] Use dedicated database field for `textmedia` media references

To avoid side effects and make maintenance easier the textmedia content
element from EXT:fluid_styled_content uses a dedicated field for media
file references This avoids side effects with EXT:css_styled_content as
the child TCA of the file references is no longer depended on the parent
CType configuration.

This also fixes the wrong media palette being shown in the backend as
the AJAX call to fetch the inline record does not have access to th
parent record.

An upgrade wizard is provided to migrate the file references to the new
assets database field.

Resolves: #70957
Releases: master
Change-Id: I32d7284e2098b4ab74f10f1fc8c7d07a7553511d
Reviewed-on: https://review.typo3.org/44228
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/fluid_styled_content/Classes/Hooks/TextmediaPreviewRenderer.php
typo3/sysext/fluid_styled_content/Configuration/TCA/Overrides/tt_content.php
typo3/sysext/fluid_styled_content/Configuration/TypoScript/Static/Setup/lib.fluidContent.ts
typo3/sysext/fluid_styled_content/Configuration/TypoScript/Static/setup.txt
typo3/sysext/fluid_styled_content/Resources/Private/Language/Database.xlf
typo3/sysext/fluid_styled_content/ext_tables.sql
typo3/sysext/install/Classes/Updates/ContentTypesToTextMediaUpdate.php
typo3/sysext/install/Classes/Updates/MigrateMediaToAssetsForTextMediaCe.php [new file with mode: 0644]
typo3/sysext/install/ext_localconf.php