Project

General

Profile

Actions

Bug #67741

closed

FILES requires field in current language

Added by Bernd Wilke over 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
TypoScript
Start date:
2015-06-25
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

inside a menu rendering (tt_content.menu.20.8) I want to access my own field tx_myext_logo, declared similar to media (it only allows one image to be selected) in typoscript.

tt_content.menu.20.8 {
  :
  2.NO.stdWrap.innerWrap {
    cObject = COA
    cObject {
      :
      20 = FILES
      20 {
        references {
          table = pages
          uid.data = field:uid
          fieldName = tx_myext_logo
          maxItems = 1
        }
        renderObj = TEXT
        renderObj.data = file:current:publicUrl
      }
      :
    }
  }
}

This works well for the default language.
as the assigned logo can not change for other languages there (normaly) is no definition for that field in pages_languages_overlay (and no settings in [FE][pageOverlayFields]) and the rendering should access the logo defined in pages.
But it does not work this way.
The behaviour for non-default-language is: no image (url)

For testing I created the field tx_myext_logo also in pages_langauge_overlay and assigned for one page an image: for that page the image (url) is shown independent from any settings in [FE][pageOverlayFields], all other pages still have no image.

This image even is shown after removing the TCA definition for the pages_language_overlay field until the field is renamed/removed.

The handling of fields in FILES needs a proper translation/overlay handling or additional selectors for languages.

Actions #1

Updated by Alexander Opitz over 9 years ago

  • Target version changed from 6.2.14 to 6.2.15
Actions #2

Updated by Alexander Opitz about 9 years ago

  • Target version changed from 6.2.15 to 6.2.16
Actions #3

Updated by Riccardo De Contardi over 8 years ago

  • Target version changed from 6.2.16 to Candidate for patchlevel
Actions #4

Updated by Anonymous about 7 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF