Bug #76038
closedcopying page with a translation - the copied translated page is not hidden and has the same title of the original page
100%
Description
I tested with both 6.2.22 and 8.1.1-dev (latest master)
Steps to reproduce:
1) have a multilanguage installation (In my case, ITA, ENG)
2) create a new page ("TEST")
3) translate it ("TEST ENG")
4) on pagetree > select "TEST" > left click > page actions > copy
4.1) left click > page actions > paste after
RESULT:
the copied page has title "TEST (Copy 1)" and is hidden (correct)
the translated copied page has title "TEST ENG" (as the original) and is not hidden (not much correct IMHO)
Updated by Gerrit Code Review almost 8 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48071
Updated by Zbigniew Jacko almost 8 years ago
My patch add this functionality to page_overlay_record, but only when you copy direclty pages_language_overlay, not when you copy a page (it normal behaviour of typo3 when copied a record which has child records).
Updated by Gerrit Code Review almost 8 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48071
Updated by Gerrit Code Review almost 8 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48071
Updated by Zbigniew Jacko almost 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 80d17c583530057df1fb1fbc76a1b68df9028ca6.
Updated by Daniel Neugebauer almost 8 years ago
This would be a very useful feature for 7 LTS as well, if it worked... With the new RealURL, collisions unresolvable by editors are even more likely to occur by accident, so I tried to add that copy suffix using the following snippet in our ext_tables.php. While it works if I copy translated page properties in List mode, it does not apply when copying pages which renders it useless...
// use same copy title suffix for translated page properties as for original pages // only applies if not defined by TYPO3 itself (or other extensions) if (!isset($GLOBALS['TCA']['pages_language_overlay']['ctrl']['prependAtCopy']) && isset($GLOBALS['TCA']['pages']['ctrl']['prependAtCopy'])) { $GLOBALS['TCA']['pages_language_overlay']['ctrl']['prependAtCopy'] = $GLOBALS['TCA']['pages']['ctrl']['prependAtCopy']; } // hide translated page properties by default $GLOBALS['TCA']['pages_language_overlay']['ctrl']['hideAtCopy'] = '1';
Not sure if it works this way in TYPO3 8 but if it only applies to explicitely copied page translations, not a translated page, this feature is pretty useless and the issue has not been resolved yet...
If TYPO3 8 got modified so it applies ctrl
properties to pages_language_overlay
if the page is being copied, it would be great if that patch could be backported to 7 as well.
Updated by Christian Toffolo over 7 years ago
Patch https://review.typo3.org/48071 works only if the copy is made directly copying a 'pages_language_overlay' record in the List module. Instead this bug report states that the problem is when a BE user copies a 'pages' record and this is the real useful case of adding a "(copy n)" to language overlays.
Sorry but this bug is not resolved.
Updated by Adrien Jacob over 6 years ago
- TYPO3 Version changed from 6.2 to 7
I confirm this issue is quite bothering when using realurl, especially on websites with many languages, as any page copy/paste results in instant URL conflicts, which are usually difficult to diagnose for editors.