http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692019-12-08T23:42:49ZTYPO3 ForgeTYPO3 Core - Bug #89784: Copy Contentelement "Text with Media" - Media is missing in the new elementhttp://forge.typo3.org/issues/89784?journal_id=4111542019-12-08T23:42:49ZRiccardo De Contardierredeco@gmail.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs Feedback</i></li></ul><p>I can't reproduce this issue, even with a non-admin user. Can you share more information about how to reproduce this issue?</p>
<p>Please specify for example:</p>
<p>- a step-by-step list of all the operations you did<br />- user and usergroup configuration and privileges</p> TYPO3 Core - Bug #89784: Copy Contentelement "Text with Media" - Media is missing in the new elementhttp://forge.typo3.org/issues/89784?journal_id=4112252019-12-10T13:02:56ZAndreas Fragner
<ul></ul><p>Here is my Step-By-Step List:</p>
<p>1.) Login as Admin<br />2.) Left Menu Select "PAGE" <br />3.) In the Page-Tree select the page<br />4.) Rioght Click on a content element of type "Text and Media" and choose "COPY" <br />5.) Click the icon for pasting the CE<br />6.) The following question if reference or copy choose "COPY"</p>
<p>The I have a CE without images.</p>
<p>The source CE is including severeal images and nothing else.</p>
<p>The same is happening if I copy a whole page. Content-Elements get copied, but file references are not copied.</p> TYPO3 Core - Bug #89784: Copy Contentelement "Text with Media" - Media is missing in the new elementhttp://forge.typo3.org/issues/89784?journal_id=4112762019-12-11T09:43:23ZRiccardo De Contardierredeco@gmail.com
<ul><li><strong>Status</strong> changed from <i>Needs Feedback</i> to <i>New</i></li></ul> TYPO3 Core - Bug #89784: Copy Contentelement "Text with Media" - Media is missing in the new elementhttp://forge.typo3.org/issues/89784?journal_id=4112822019-12-11T10:03:18ZRiccardo De Contardierredeco@gmail.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs Feedback</i></li></ul><blockquote>
<p>6.) The following question if reference or copy choose "COPY"</p>
</blockquote>
<p>Are you using EXT:gridelements? IIRC the "paste as reference" button is added by that extension. Maybe you perform your copy inside a grid element?</p> TYPO3 Core - Bug #89784: Copy Contentelement "Text with Media" - Media is missing in the new elementhttp://forge.typo3.org/issues/89784?journal_id=4112902019-12-11T10:52:28ZAndreas Fragner
<ul></ul><p>Yes I'm using EXT:gridelements, but this bug I'm not copying content elements inside a gridelement.<br />To reproduce this bug I create a content element without a surrouding gridelement.</p>
<p>Just to be sure I just created a new empty page in this installation without any content elements. On this page I created a new CE "text and media" an inserted 3 existing images from the fileadmin folder. After saving the newly created CE I tried to copy it - same result: no filereferences in the new copy. I did not use any gridelement on the new page.</p>
<p>So how can this be influenced by gridelements when gridelements are not used on the newly created page in this typo3 instance?</p> TYPO3 Core - Bug #89784: Copy Contentelement "Text with Media" - Media is missing in the new elementhttp://forge.typo3.org/issues/89784?journal_id=4112922019-12-11T12:44:22ZRiccardo De Contardierredeco@gmail.com
<ul><li><strong>Status</strong> changed from <i>Needs Feedback</i> to <i>New</i></li></ul> TYPO3 Core - Bug #89784: Copy Contentelement "Text with Media" - Media is missing in the new elementhttp://forge.typo3.org/issues/89784?journal_id=4141842020-01-22T09:55:11ZAndreas Fragner
<ul></ul><p>Please let me know how I can help to solve this issue - I think it is only occuring when updating a Typo3 V8 installation to Typo3 V9. I have here a fresh Typo3 V10 installation where this bug is not reproducable. I'll try to get a fresh V9 installation with introduction package to test if this issue also exists.<br />Maybe some database dumps could be helpful to solve this issue?</p>
<p>Update: fresh installation with introduction package: the problem is not occuring - so how can we solve this or how can we find out why this is happening in my upgraded installations?</p> TYPO3 Core - Bug #89784: Copy Contentelement "Text with Media" - Media is missing in the new elementhttp://forge.typo3.org/issues/89784?journal_id=4152122020-02-13T16:02:21ZAndreas Fragner
<ul></ul><p>I think I have found the reason why media ressources are not copied. I have created an own content element called "responsive video"</p>
<p>In the TCA override of tt_content I have the following lines:</p>
<pre><code class="php syntaxhl" data-language="php"><span class="nv">$fields</span> <span class="o">=</span> <span class="k">array</span><span class="p">(</span>
<span class="s1">'videosource'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span>
<span class="s1">'exclude'</span> <span class="o">=></span> <span class="mi">1</span><span class="p">,</span>
<span class="s1">'label'</span> <span class="o">=></span> <span class="s1">'LLL:EXT:frontend/Resources/Private/Language/Database.xlf:tt_content.asset_references'</span><span class="p">,</span>
<span class="s1">'config'</span> <span class="o">=></span> <span class="nc">\TYPO3\CMS\Core\Utility\ExtensionManagementUtility</span><span class="o">::</span><span class="nf">getFileFieldTCAConfig</span><span class="p">(</span><span class="s1">'assets'</span><span class="p">,</span> <span class="k">array</span><span class="p">(</span>
<span class="s1">'appearance'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span>
<span class="s1">'createNewRelationLinkTitle'</span> <span class="o">=></span> <span class="s1">'LLL:EXT:frontend/Resources/Private/Language/Database.xlf:tt_content.asset_references.addFileReference'</span>
<span class="p">),</span>
<span class="c1">// custom configuration for displaying fields in the overlay/reference table</span>
<span class="c1">// behaves the same as the image field.</span>
<span class="s1">'overrideChildTca'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span>
<span class="s1">'types'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span>
<span class="s1">'0'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span>
<span class="s1">'showitem'</span> <span class="o">=></span> <span class="s1">'
--palette--;LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'</span>
<span class="p">),</span>
<span class="nc">\TYPO3\CMS\Core\Resource\File</span><span class="o">::</span><span class="no">FILETYPE_VIDEO</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span>
<span class="s1">'showitem'</span> <span class="o">=></span> <span class="s1">'
--palette--;LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_reference.videoOverlayPalette;videoOverlayPalette,
--palette--;;filePalette'</span>
<span class="p">),</span>
<span class="nc">\TYPO3\CMS\Core\Resource\File</span><span class="o">::</span><span class="no">FILETYPE_APPLICATION</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span>
<span class="s1">'showitem'</span> <span class="o">=></span> <span class="s1">'
--palette--;LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'</span>
<span class="p">)</span>
<span class="p">),</span>
<span class="p">),</span>
<span class="s1">'maxitems'</span> <span class="o">=></span> <span class="mi">1</span><span class="p">,</span>
<span class="p">),</span> <span class="s1">'mp4,youtube,vimeo'</span><span class="p">)</span>
<span class="p">),</span>
<span class="p">);</span>
<span class="nc">\TYPO3\CMS\Core\Utility\ExtensionManagementUtility</span><span class="o">::</span><span class="nf">addTCAcolumns</span><span class="p">(</span><span class="s1">'tt_content'</span><span class="p">,</span> <span class="nv">$fields</span><span class="p">);</span>
<span class="nc">\TYPO3\CMS\Core\Utility\ExtensionManagementUtility</span><span class="o">::</span><span class="nf">addPlugin</span><span class="p">(</span>
<span class="k">array</span><span class="p">(</span>
<span class="s1">'LLL:EXT:theme/Resources/Private/Language/locallang_be.xlf:content.responsivevideo'</span><span class="p">,</span>
<span class="s1">'theme_responsivevideo'</span><span class="p">,</span>
<span class="s1">'EXT:theme/Resources/Public/Backend/Icons/theme_responsivevideo.svg'</span>
<span class="p">),</span> <span class="s1">'CType'</span><span class="p">,</span> <span class="s1">'theme'</span>
<span class="p">);</span>
<span class="c1">// Responsive video</span>
<span class="nv">$GLOBALS</span><span class="p">[</span><span class="s1">'TCA'</span><span class="p">][</span><span class="s1">'tt_content'</span><span class="p">][</span><span class="s1">'types'</span><span class="p">][</span><span class="s1">'theme_responsivevideo'</span><span class="p">]</span> <span class="o">=</span> <span class="k">array</span><span class="p">(</span>
<span class="s1">'showitem'</span> <span class="o">=></span> <span class="s1">'
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.headers;headers,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.media,
videosource,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.frames;frames,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.appearanceLinks;appearanceLinks,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
--palette--;;language,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
--palette--;;hidden,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.access;access,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories,
categories,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
rowDescription,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
'</span><span class="p">,</span>
<span class="p">);</span>
</code></pre>
<p>In my ext_tables.sql script I have</p>
<pre><code class="sql syntaxhl" data-language="sql"><span class="k">CREATE</span> <span class="k">TABLE</span> <span class="n">tt_content</span> <span class="p">(</span>
<span class="n">videosource</span> <span class="nb">int</span><span class="p">(</span><span class="mi">11</span><span class="p">)</span> <span class="nb">unsigned</span> <span class="k">DEFAULT</span> <span class="s1">'0'</span> <span class="k">NOT</span> <span class="k">NULL</span><span class="p">,</span>
<span class="p">);</span>
</code></pre>
<p>And in the template I am assigning my content element "responsive video" to a fluid template</p>
<pre><code class="text syntaxhl" data-language="text">tt_content {
theme_responsivevideo =< tt_content.textmedia
theme_responsivevideo {
templateName = Responsivevideo
}
}
</code></pre>
<p>So there must be somethin in these lines that is not compatible with Typo3 V9.5 - but I cannot see what is wrong - maybe you can help me?</p> TYPO3 Core - Bug #89784: Copy Contentelement "Text with Media" - Media is missing in the new elementhttp://forge.typo3.org/issues/89784?journal_id=4152142020-02-13T16:54:00ZRiccardo De Contardierredeco@gmail.com
<ul></ul><p>umm I don't know.. for now I would suggest you to ask for help on Slack</p> TYPO3 Core - Bug #89784: Copy Contentelement "Text with Media" - Media is missing in the new elementhttp://forge.typo3.org/issues/89784?journal_id=4152432020-02-14T13:55:47ZAndreas Fragner
<ul></ul><p>OK my own content element "responsive video" is working again... replaced</p>
<pre><code class="php syntaxhl" data-language="php"><span class="nc">\TYPO3\CMS\Core\Utility\ExtensionManagementUtility</span><span class="o">::</span><span class="nf">addPlugin</span><span class="p">(</span>
<span class="k">array</span><span class="p">(</span>
<span class="s1">'LLL:EXT:theme/Resources/Private/Language/locallang_be.xlf:content.responsivevideo'</span><span class="p">,</span>
<span class="s1">'theme_responsivevideo'</span><span class="p">,</span>
<span class="s1">'EXT:theme/Resources/Public/Backend/Icons/theme_responsivevideo.svg'</span>
<span class="p">),</span> <span class="s1">'CType'</span><span class="p">,</span> <span class="s1">'theme'</span>
<span class="p">);</span>
</code></pre><br />by
<pre><code class="php syntaxhl" data-language="php"><span class="nc">\TYPO3\CMS\Core\Utility\ExtensionManagementUtility</span><span class="o">::</span><span class="nf">addTcaSelectItem</span><span class="p">(</span>
<span class="s1">'tt_content'</span><span class="p">,</span>
<span class="s1">'CType'</span><span class="p">,</span>
<span class="k">array</span><span class="p">(</span>
<span class="s1">'LLL:EXT:theme/Resources/Private/Language/locallang_be.xlf:content.responsivevideo'</span><span class="p">,</span>
<span class="s1">'theme_responsivevideo'</span><span class="p">,</span>
<span class="s1">'EXT:theme/Resources/Public/Backend/Icons/theme_responsivevideo.svg'</span><span class="p">,</span>
<span class="p">),</span>
<span class="s1">'textmedia'</span><span class="p">,</span>
<span class="s1">'after'</span>
<span class="p">);</span>
</code></pre>
<p>Still no copying of content elements possible...</p> TYPO3 Core - Bug #89784: Copy Contentelement "Text with Media" - Media is missing in the new elementhttp://forge.typo3.org/issues/89784?journal_id=4154912020-02-17T09:17:59ZAndreas Fragner
<ul><li><strong>Complexity</strong> set to <i>easy</i></li></ul><pre><code class="cpp syntaxhl" data-language="cpp"><span class="err">$</span><span class="n">fields</span> <span class="o">=</span> <span class="n">array</span><span class="p">(</span>
<span class="err">'</span><span class="n">videosource</span><span class="err">'</span> <span class="o">=></span> <span class="n">array</span><span class="p">(</span>
<span class="err">'</span><span class="n">exclude</span><span class="err">'</span> <span class="o">=></span> <span class="mi">1</span><span class="p">,</span>
<span class="err">'</span><span class="n">label</span><span class="err">'</span> <span class="o">=></span> <span class="err">'</span><span class="n">LLL</span><span class="o">:</span><span class="n">EXT</span><span class="o">:</span><span class="n">frontend</span><span class="o">/</span><span class="n">Resources</span><span class="o">/</span><span class="n">Private</span><span class="o">/</span><span class="n">Language</span><span class="o">/</span><span class="n">Database</span><span class="p">.</span><span class="n">xlf</span><span class="o">:</span><span class="n">tt_content</span><span class="p">.</span><span class="n">asset_references</span><span class="err">'</span><span class="p">,</span>
<span class="err">'</span><span class="n">config</span><span class="err">'</span> <span class="o">=></span> <span class="err">\</span><span class="n">TYPO3</span><span class="err">\</span><span class="n">CMS</span><span class="err">\</span><span class="n">Core</span><span class="err">\</span><span class="n">Utility</span><span class="err">\</span><span class="n">ExtensionManagementUtility</span><span class="o">::</span><span class="n">getFileFieldTCAConfig</span><span class="p">(</span><span class="err">'</span><span class="n">assets</span><span class="err">'</span><span class="p">,</span> <span class="n">array</span><span class="p">(</span>
</code></pre>
<p>was absolutely wrong...<br />replaced it by<br /><pre><code class="php syntaxhl" data-language="php"><span class="nv">$fields</span> <span class="o">=</span> <span class="k">array</span><span class="p">(</span>
<span class="s1">'videosource'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span>
<span class="s1">'exclude'</span> <span class="o">=></span> <span class="mi">1</span><span class="p">,</span>
<span class="s1">'label'</span> <span class="o">=></span> <span class="s1">'LLL:EXT:frontend/Resources/Private/Language/Database.xlf:tt_content.asset_references'</span><span class="p">,</span>
<span class="s1">'config'</span> <span class="o">=></span> <span class="nc">\TYPO3\CMS\Core\Utility\ExtensionManagementUtility</span><span class="o">::</span><span class="nf">getFileFieldTCAConfig</span><span class="p">(</span><span class="s1">'videosource'</span><span class="p">,</span> <span class="k">array</span><span class="p">(</span>
</code></pre></p>
<p>and used the right field in my template and now everything is working again... so it's a little bit buggy 8.7 that had no problem with my faulty code :-)</p>
<p>Sometimes errors are hard to find especially when self coded... :-)</p>
<p>This task can be closed - no bug, just working as expected.</p> TYPO3 Core - Bug #89784: Copy Contentelement "Text with Media" - Media is missing in the new elementhttp://forge.typo3.org/issues/89784?journal_id=4171302020-02-29T10:52:01ZRiccardo De Contardierredeco@gmail.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul><p><a class="user active user-mention" href="http://forge.typo3.org/users/351">@Andreas Otto †</a> Fragner Thank you for your time and your reply; I close this issue as requested.</p>
<p>If you think that this is the wrong decision or there is still something that can be done, please reopen it or ping me.</p>