Issue Bug Resolved

#60357Pasting a localized content element into another colPos fails

Frank Gerards 07/16/14, 14:27 updated 06/04/26, 17:08

Description

Hi,

in TYPO3 6.2.3 , pasting a localized content element into an empty column fails.
The default language CE record is inserted correctly into the new column, the localized isnt.

Cause of the error could be:
- When pasting into an empty column with different uid than source column the default language’s CE colPos is set correctly,
the translated CE records’ colPos remains the OLD colPos of the source-column.

Steps to reproduce:

- Copy localized CE from an existing column
- Go to other page with different backend layout/different columns
- Paste localized CE into an EMPTY column

Reviews 8

History 1840

Show 1115 earlier messages
  1. Riccardo De Contardi commented and changed status New Needs Feedback assigned to Frank Gerards <span data-processor="relativetime" data-value="2015-07-10T10:00:48+00:00" > 07/10/15, 10:00 </span>

    this is my test, done with 6.2.14:

    1) be layout for home page:

    backend_layout {
        colCount = 2
        rowCount = 1
        rows {
            1 {
                columns {
                    1 {
                        name = Main content
                        colPos = 0
                    }
                    2 {
                        name = Side Content
                        colPos = 1
                    }
                }
            }
        }
    }

    2) be layout for all other pages:

    backend_layout {
        colCount = 1
        rowCount = 2
        rows {
            1 {
                columns {
                    1 {
                        name = my page col
                        colPos = 0
                    }
                }
            }
            2 {
                columns {
                    1 {
                        name = my other col
                        colPos = 2
                    }
                }
            }

    as you can see it has a different column with colpos=2, while home has colpos=1

    3) default language:italian; add Website language: english (ID=1)

    4) Home page > Side Content > create a text with image element (header:“prova contenuto per 60357” ID=70)

    5) Home page > switch to view “languages” > translate the CE (header:”[Translate to English:] prova contenuto per 60357”, ID=71)

    6) Home page > list view > copy “[Translate to English:] prova contenuto per 60357”

    7) go to another page > page module > paste into “my other col” (resulting copy has ID=74)

    8) Result: the CE is in the correct column; editing the element the Column (colpos) is “my other col”

    Do you think it is sufficient to consider it closed, or should I perform more tests?

    Thank you

  2. Daniel Goerz commented and changed subject Pasting a localized content element into empty column fails Pasting a localized content element into another colPos fails status Needs Feedback New target version TYPO3 Version 6.2 7 <span data-processor="relativetime" data-value="2015-10-10T23:55:53+00:00" > 10/10/15, 23:55 </span>

    Confirmed on 7.6-dev.

    The translation of the copied content element is on the correct page but in the wrong colPos.

  3. Daniel Goerz changed removed the assignee PHP Version 5.4 5.5 Sprint Focus Stabilization Sprint <span data-processor="relativetime" data-value="2015-10-11T22:55:36+00:00" > 10/11/15, 22:55 </span>

  4. Oliver Hader commented <span data-processor="relativetime" data-value="2015-11-03T18:40:54+00:00" > 11/03/15, 18:40 </span>

    Let me create some functional tests first to ensure DataHandler is working correctly. If so, the issue might be related to wrong/incomplete command-map data being transferred (search for ‘paste’ in DataHandler::process_cmdmap())

  5. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2018-04-10T22:39:12+00:00" > 04/10/18, 22:39 </span>

    I probably did something wrong years ago… I repeated the test with TYPO3 8.7.12

    1) Page AAAA with colPos 0,1 in two languages
    2) Page BBBB with colPos 0,2 in two languages
    3) Create a CE in AAAA on colPos 1 and translate it (connected mode)
    4) cut the content element and paste it into BBBB, in colPos 2

    Results:

    the CE in default language is correctly placed; its translated counterpart disappears from page view, because it still has colPos=1 (which is invalid on the new page) and it can be “rescued” via list view.

    The same problem occurs on TYPO3 9.2.0-dev, but here the problem is mitigated, because TYPO3 warns you that there are unused content elements in the page, and show them with yellow/orange titlebar.

  6. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2019-11-12T22:26:38+00:00" > 11/12/19, 22:26 </span>

    This issue still occurs on 10.2.0-dev (latest master); the behavior is the same described on my comment 7

  7. Julian Mair commented <span data-processor="relativetime" data-value="2021-11-18T15:07:12+00:00" > 11/18/21, 15:07 </span>

    I can confirm this bug in Typo3 10.4.21 – is there anything we can do?

  8. Benni Mack commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2024-08-06T15:28:33+00:00" > 08/06/24, 15:28 </span>

    IMHO this is correct. If you have a localized CE, then the parent actually needs to be copied / cut / pasted. So, I wonder – in your original use-case – what should happen to the original record if you move/copy the localized CE?

  9. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2024-08-17T16:07:56+00:00" > 08/17/24, 16:07 </span>

    I guess that the ColPos should be inherited from the default language – right now you can have an element with a ColPos on the default language and the translated element ( on connected mode ) with another colpos (the translated one can be edited)

  10. Gerrit Code Review pushed patch set 1 for main to change 85978 status Needs Feedback Under Review <span data-processor="relativetime" data-value="2024-09-10T10:04:50+00:00" > 09/10/24, 10:04 </span>

  1. Anonymous commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2024-09-11T10:30:08+00:00" > 09/11/24, 10:30 </span>

    Applied in changeset commit:f9d64b006d6897d0154c349e485ba4bee3db256d.

  2. Gerrit Code Review pushed patch set 1 for main to change 93853 status Closed Under Review <span data-processor="relativetime" data-value="2026-04-27T12:53:30+00:00" > 04/27/26, 12:53 </span>