Bug #46130
closedImage links in localized content elements
0%
Description
When i localize content elements with images and in the default language, the images have links to external pages, the default links are not taken for the localized content elements. If it is a link to an internal page (id), the link is taken correctly. I have to manually set the link for localized images.
Files
Updated by Alexander Opitz almost 11 years ago
- Status changed from New to Needs Feedback
Hi,
does the problem still exists within newer versions of TYPO3 CMS (6.1.7)?
Updated by Thorsten May almost 11 years ago
Hi,
the problem still exists in 6.1.7.
And even internal page links are missing for localized images.
Any solution?
Updated by Alexander Opitz almost 11 years ago
- Project changed from 1401 to TYPO3 Core
Updated by Alexander Opitz almost 11 years ago
- Category set to File Abstraction Layer (FAL)
- Status changed from Needs Feedback to New
- Is Regression set to No
- TYPO3 Version set to 6.0
Updated by Alexander Opitz almost 11 years ago
Hi, I've no solution, but moved the issue to correct place to get recognized. :)
Updated by Nikolas Hagelstein almost 11 years ago
Alexander Opitz wrote:
Hi, I've no solution, but moved the issue to correct place to get recognized. :)
Are there any further information on that problem? E.g. what/where/wrong?
Updated by Mathias Schreiber almost 10 years ago
- Status changed from New to Needs Feedback
- Assignee set to Mathias Schreiber
First, we need to define the expected behavior here.
Right now the core handles this "consistently"... by not linking the images in the translation.
This makes sense, because if we would take the links from the translation if none were set, you had no chance to "unlink" an image.
Ideas?
Updated by Jörg Velletti over 9 years ago
Mathias Schreiber wrote:
This makes sense, because if we would take the links from the translation if none were set, you had no chance to "unlink" an image.
as this makes sence,, the "main" Error is the "Hover" decription below the localiced, empty Field:
"The value of the default language will be used if this field is left empty in the translation."
see pictures here: https://forge.typo3.org/issues/59192
This is confusing the editors: the help Icon tells them, that an empty field will be okay, but in reallity , it does not work.
so if tca
\typo3\sysext\core\Configuration\TCA\sys_file_reference.php
'link' => array( 'l10n_mode' => 'mergeIfNotBlank',
is changed to:
'link' => array( 'l10n_mode' => 'prefixLangTitle',
or even better:
l10n_mode is removed, so the field value from default languages is copied during "translate" Operation and can be edited afterwards be author if it is different (or unwanted) for non-default languages
Updated by Alexander Opitz over 9 years ago
- Status changed from Needs Feedback to New
- Assignee deleted (
Mathias Schreiber)
Updated by Riccardo De Contardi almost 7 years ago
I have performed the following test with TYPO3 8.7.9
Prerequisites:¶
- two languages, default (ITA) and ID=1 (ENG)
- fresh installation, no "weird" configuration: this is the full TS setup:
config{ no_cache = 1 htmlTag_setParams = class="no-js" lang="it" sys_language_mode = content_fallback sys_language_overlay = hideNonTranslated linkVars =L(0-1) sys_language_uid = 0 language = it locale_all = it_IT.utf8 } page = PAGE [globalVar = GP:L=1] config{ htmlTag_setParams = class="no-js" lang="en" sys_language_uid = 1 language = en locale_all = en_EN.utf8 } [global] page.100 =< styles.content.get
Test:¶
1) create a page and translate it
2) create another page and translate it
3) on the page created at point 1) insert a text and image content element
3.1) add two images to the content
3.2) link the first image to the page created at point 2)
3.3) link the second image to an external url e.g. www.google.it
4) translate the content element (translate mode, not copy mode)
results¶
1) in the alternative language the first image is linked to the page created at point 2) but with &L=1 appended
2) the second image is still linked to www.google.it
Post Scriptum: I noticed that, when the link in the default language is changed, the link on the translated content is not updated. Is it correct?
Updated by Riccardo De Contardi about 6 years ago
- File Cattura.png Cattura.png added
I have performed a test on 9.5.0-dev (latest master) similar to the one described on my previous comment:
1) TYPO3 with two languages: default:ITA; id=2, ENG
2) create a page in ITA -> headline: Test 46130
2.1) translate it into ENG -> headline: [Translate to English] Test 46130
3) create another page in ITA -> headline: Test 46130 Target
3.1) translate it into ENG -> headline: [Translate to English] Test 46130 Target
4) go to page created at point 2) ; create a text with images content element
4.1) add two images
4.1.1) link the first image to the page created at point 3)
4.1.2) link the second image to an external url e.g. www.google.it
5) translate the content element (translate mode, not copy mode)
Results¶
1) in the alternative language the first image is linked to the page created at point 3.1), (e.g. the link is en/translate-to-english-test-46130-target)
2) the second image is still linked to www.google.it
Post scriptum¶
1) I noticed that, when the link in the default language is changed, the link on the translated content is not updated. Is it correct?§
2) I also noticed that, when editing the images in the second language (ENG), the field shows the path of the italian version of the page (See attached image)
Is this correct? Should I open a different issue for that?
Updated by Susanne Moog about 6 years ago
- Sprint Focus set to On Location Sprint
Updated by Benni Mack about 6 years ago
- Status changed from New to Closed
Riccardo - perfect summary, your described behaviour is expected and properly done.