Project

General

Profile

Actions

Bug #46130

closed

Image links in localized content elements

Added by TimoF no-lastname-given about 11 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2013-03-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
On Location Sprint

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

Cattura.png (47.3 KB) Cattura.png Riccardo De Contardi, 2018-10-01 21:27
Actions #1

Updated by Alexander Opitz over 10 years ago

  • Status changed from New to Needs Feedback

Hi,

does the problem still exists within newer versions of TYPO3 CMS (6.1.7)?

Actions #2

Updated by Thorsten May over 10 years ago

Hi,
the problem still exists in 6.1.7.
And even internal page links are missing for localized images.

Any solution?

Actions #3

Updated by Alexander Opitz over 10 years ago

  • Project changed from 1401 to TYPO3 Core
Actions #4

Updated by Alexander Opitz over 10 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
Actions #5

Updated by Alexander Opitz over 10 years ago

Hi, I've no solution, but moved the issue to correct place to get recognized. :)

Actions #6

Updated by Nikolas Hagelstein over 10 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?

Actions #7

Updated by Mathias Schreiber over 9 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?

Actions #8

Updated by Jörg Velletti almost 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

Actions #9

Updated by Alexander Opitz almost 9 years ago

  • Status changed from Needs Feedback to New
  • Assignee deleted (Mathias Schreiber)
Actions #10

Updated by Riccardo De Contardi over 6 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?

Actions #11

Updated by Riccardo De Contardi over 5 years ago

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?

Actions #12

Updated by Susanne Moog over 5 years ago

  • Sprint Focus set to On Location Sprint
Actions #13

Updated by Benni Mack over 5 years ago

  • Status changed from New to Closed

Riccardo - perfect summary, your described behaviour is expected and properly done.

Actions

Also available in: Atom PDF