Project

General

Profile

Actions

Task #65045

closed

Pages Language Overlay -> Media Link / Alternative missing

Added by Willi Martens almost 10 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2014-05-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

I've just noticed that it is not possible to set the alternative and link field for page-media in the translation mode (pages_language_overlay).
The fields title and description are available directly from the File Abstraction Layer field for page media.

It seems like the pages language overlay is using the "basicoverlayPalette" from sysext/core/Configuration/TCA/sys_file_reference.php near line 257

'basicoverlayPalette' => array(
    'showitem' => 'title,description',
    'canNotCollapse' => TRUE
),

I think it should use the imageoverlayPalette near line 262 of the file. When changing the basicoverlayPalette to the same showitem fields, alternative and link field will also show up on language overlay, but of course it would not fix the issue, that the overlay is chosing the wrong palette.

'basicoverlayPalette' => array(
    'showitem' => '
                title,alternative;;;;3-3-3,--linebreak--,
                link,description
        ',
    'canNotCollapse' => TRUE
),

Files

fal_languageoverlay.png (39.4 KB) fal_languageoverlay.png Teamgeist Medien, 2014-05-22 15:18
Actions #1

Updated by Willi Martens almost 10 years ago

alternative and link field for page-media in the translation shold be translatable by default without editing the tca.

Actions #2

Updated by Andrea Herzog-Kienast almost 10 years ago

Same in 7.1 and - if I set a link (default language), the link will not work. Not to a page or a url. Also Metadata will not be shown. But perhaps I forgot something in TS.

Same to you?

Actions #3

Updated by Willi Martens almost 10 years ago

It´s just the missing of the fields. After activating by TCA all works fine in 6.2.

Actions #4

Updated by Andrea Herzog-Kienast almost 10 years ago

Tested your patch with TPYO3 7.1-dev today. All fields will be shown, but it is not possible to change the link in the translated file. the link allways uses the link from the default language. But the language parameter is set to the correct language.
Have you tested this?

Actions #5

Updated by Willi Martens almost 10 years ago

Yes, works fine in 6.2. Here my typoscript for rendering the translated record:

20 = FILES
20 {
          references {
            table = pages
            uid = 1
            fieldName = media
          }

          renderObj = IMAGE
          renderObj {
            stdWrap.dataWrap = <div class="ad visible-lg" style="{file:current:description}">|</div>
            file {
              import.data = file:current:originalUid // file:current:uid
            }
            altText.data = file:current:alternative
            titleText.data = file:current:title
            stdWrap.typolink.parameter.data = file:current:link
          }
}
Actions #6

Updated by Willi Martens almost 10 years ago

My modification of TCA (extTables.php):

$GLOBALS['TCA']['sys_file_reference']['palettes']['basicoverlayPalette']['showitem'] = 'title,alternative;;;;3-3-3,--linebreak--,link,description';

Actions #7

Updated by Andrea Herzog-Kienast almost 10 years ago

Strange behaviour - tested it with TS. Cleared caches like hell, deleted TS - and everything works fine. Can you please take a look here. File is: "Test metadata in translation" default / "Bild mit übersetzten Metadaten" de

for german: http://typo37.herzogkienast.de/index.php?id=3&L=1

for default: http://typo37.herzogkienast.de/index.php?id=3&no_cache=1&L=0

But your patch is still in use. Only TS is deleted.

Actions #8

Updated by Philipp Gampe almost 10 years ago

You need to save at least once: #57488

Actions #9

Updated by Philipp Gampe almost 10 years ago

OK, bug is in the TCA I think. The original TCA for the pages table has a comment // Use the imageoverlayPalette instead of the basicoverlayPalette just over some extra configuration for the media field.
AFAICS those are missing for the translation table.

Actions #10

Updated by Philipp Gampe almost 10 years ago

  • Status changed from New to Needs Feedback

So is this bug about adding the according TCA setting or about translations not working?
Translations work for me. Adding the fields to TCA sounds like a useful feature to me.

Actions #11

Updated by Willi Martens almost 10 years ago

Yes, you are right. It's a "useful feature". I don't know how to change the categorization.

Actions #12

Updated by Torben Hansen over 9 years ago

The solution with adding the missing field in extTables.php works fine. But is'nt this a bug? I can't see any reason, why the fields "link" and "alternative" are missing in pages language overlay? IMO those fields should be added, as it leads to confusion, when editors are not able to "translate" those fields.

Actions #13

Updated by Alexander Opitz about 9 years ago

Hi,

does this issue still exists with latest TYPO3 (6.2.15)?

Actions #14

Updated by Riccardo De Contardi almost 9 years ago

On 6.2.16, I followed these steps:

1) create a page,add an image on "relations" tab, fill the "override" fields: title, alternative text, link, description.
2) translate the page
3) add the same image on the "relations" tab.

Result: only the fields "title" and "description" are available. This is independent from translating or not the media element in list module.

The same happens on 7.6.1 (latest master)

Actions #15

Updated by Alexander Opitz almost 9 years ago

  • Status changed from Needs Feedback to New
Actions #16

Updated by Benni Mack almost 7 years ago

  • Status changed from New to Needs Feedback

We could finally fix this with v9 / master, can you please recheck?

Actions #17

Updated by Riccardo De Contardi almost 7 years ago

  • Status changed from Needs Feedback to Closed

I close this one, it is solved for both 8.7.9 and 9.2.0-dev (latest master); I performed the following test on both:

Prerequisites

1) TYPO3 with at least one alternative language (in my case: default: ITALIAN, alternative language: ENGLISH)

Test procedure:

1) create a page > translate it
2) create "Image only" CE, add an image
3) override "title", "description", "alternative text" and set a link
4) Translate it "Translate mode"

Result:

All the fields are available and can be edited; I also repeated the same test in "Copy mode" with the same result.

If you think that this is the wrong decision or experience the issue again or think that a different test should be performed, please reopen it or open a new issue with a reference to this one. Thank you.

Actions

Also available in: Atom PDF