Bug #61923

Localization of elements and their categories in the backend

Added by Kurt Gusbeth about 6 years ago. Updated over 2 years ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Categorization API
Target version:
-
Start date:
2014-09-27
Due date:
% Done:

0%

TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
hard
Is Regression:
No
Sprint Focus:

Description

I am using makeCategorizable like this in my extension:

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::makeCategorizable(
    $_EXTKEY,
    'tx_ext_domain_model_content',
    $fieldName = 'categories',
    $options = array()
);

and:
CREATE TABLE tx_ext_domain_model_content (
    ...
    categories int(11) DEFAULT '0' NOT NULL,
    ...
);

The problem: the relations between sys_category and tx_ext_domain_model_content in sys_category_record_mm are not correct for translated elements when saving a translated element of the extension.
When I save a translated element (sys_language_uid=1), than Typo3 uses the UID of the original categories (sys_language_uid=0) for the relations in sys_category_record_mm.
Thats wrong. Typo3 should use the UID of the translated categories.
This happens only when saving a translated element.
Typo3 uses the tranalated UIDs of categories after the localization of categories or elements.
Conclusion: the main problem is that Typo3 shows only the original categories (sys_language_uid=0) even for translated elements and thats why Typo3 saves the wrong UID of the categories in sys_category_record_mm.
Is there any way to show the translated categories for translated elements?


Related issues

Related to TYPO3 Core - Feature #66155: Backend display of localized records New 2015-03-30
Related to TYPO3 Core - Bug #70460: Categories for translated pages/categories get lost New 2015-10-07
Related to TYPO3 Core - Bug #68177: Wrong Categories on pages with pages_language_overlay Closed 2015-07-15
Related to TYPO3 Core - Bug #76629: Assigning translated categories doesn't work Closed 2016-06-14

History

#1 Updated by Kurt Gusbeth about 6 years ago

You will find a description with an image in my documentation:
http://docs.typo3.org/typo3cms/extensions/camaliga/Administration/Categories/Index.html

#2 Updated by Susanne Moog almost 3 years ago

  • Sprint Focus set to On Location Sprint

#3 Updated by Oliver Hader almost 3 years ago

  • Status changed from New to Accepted

#4 Updated by Mathias Brodala over 2 years ago

  • Sprint Focus deleted (On Location Sprint)

Also available in: Atom PDF