Zum Inhalt springen

Mehrsprachigkeit bei FAL / DCE (Dynamic Content Elements)

Erstellt am 21. Juli 2015 · 2 Antworten · letzte Antwort am 2. November 2018

Tags: Dateien & FAL, DCE, Frage

nkx123 ·

Hi.
Ich habe ein DCE erzeugt das ein FAL-Objekt beinhaltet. Leider werden immer nur die Bilder der Standard-Sprache ausgegeben.
Hat jemand eine Idee? Fehlt mir vielleicht eine Einstellung oder ist das ein bekannter Bug?
Bin für jeden Tip dankbar!

Das DCE-Template:

{namespace dce=Tx_Dce_ViewHelpers}
<f:layout name="Default" />

<f:section name="main">
		
	
	<f:for each="{dce:fal(field:'image', contentObject:contentObject)}" as="fileReference">
		<f:debug>{fileReference}</f:debug>
	<f:cObject typoscriptObjectPath="lib.fce.imageBox" 
		data="{header:'{field.title}', section_frame: '{contentObject.section_frame}', header_layout: '2', header_position:'center', imguid: 'fileReference.uid', imgsrc: '{f:uri.image(src:fileReference.uid,treatIdAsReference:1)}'}">
    </f:cObject>
	
    </f:for>
</f:section>

TCA-Configuration

<config>
	<type>inline</type>
	<foreign_table>sys_file_reference</foreign_table>
	<foreign_field>uid_foreign</foreign_field>
	<foreign_sortby>sorting_foreign</foreign_sortby>
	<foreign_table_field>tablenames</foreign_table_field>
	<foreign_match_fields>
		<fieldname>image</fieldname> <!-- Name of variable! -->
	</foreign_match_fields>
	<foreign_label>uid_local</foreign_label>
	<foreign_selector>uid_local</foreign_selector>
	<foreign_selector_fieldTcaOverride>
		<config>
			<appearance>
				<elementBrowserType>file</elementBrowserType>
				<elementBrowserAllowed>gif,jpg,jpeg,tif,tiff,bmp,pcx,tga,png,pdf,ai</elementBrowserAllowed>
			</appearance>
		</config>
	</foreign_selector_fieldTcaOverride>

	<minitems>0</minitems>
	<maxitems>1</maxitems>

	<appearance>
		<useSortable>1</useSortable>
		<headerThumbnail>
			<field>uid_local</field>
			<width>64</width>
			<height>64</height>
		</headerThumbnail>

		<showPossibleLocalizationRecords>0</showPossibleLocalizationRecords>
		<showRemovedLocalizationRecords>0</showRemovedLocalizationRecords>
		<showSynchronizationLink>0</showSynchronizationLink>
		<enabledControls>
			<info>0</info>
			<new>0</new>
			<dragdrop>0</dragdrop>
			<sort>1</sort>
			<hide>1</hide>
			<delete>1</delete>
			<localize>1</localize>
		</enabledControls>

		<createNewRelationLinkTitle>LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
	</appearance>

	<behaviour>
		<localizationMode>select</localizationMode>
		<localizeChildrenAtParentLocalization>0</localizeChildrenAtParentLocalization>
	</behaviour>
</config>

Typoscript zum einbinden des DCE
[code language=TypoScript]

lib.fce.responsiveImage = IMAGE
lib.fce.responsiveImage.file < tt_content.image.20.1
lib.fce.responsiveImage.file.import.field = imgsrc
lib.fce.responsiveImage.wrap = <div class="ce-image image">|</div>

lib.fce.imageBox = COA
lib.fce.imageBox {
  10 < lib.stdheader
  10.field = header
  20 = COA
  20 {
    wrap = <div class="toggle-box-target">|</div>
    20 < lib.fce.responsiveImage
    30 < lib.conceptBox.10.40
  }
wrap = <div class="ce image-box toggle-box text-center">|</div>
}

[/code]
hannah ·

Hi,
ich hab das gleiche Problem - allerdings nur bei einem normalen FAL Bild ohne Sections.
in TYPO3 6.2.14
DCE 1.0.5
im Setup - sowohl sys_language_mode = ignore und strict ausprobiert:
config {
#sys_language_mode = ignore
sys_language_mode = strict
sys_language_overlay = hideNonTranslated
}

allerdings habe ich gesehen, dass es offenbar auch bugs bei der Übersetzung von FAL Images gibt
https://forge.typo3.org/issues/57272
die Patches dort haben mir aber nicht geholfen, bei der Lokalisierung von FAL Bildern im DCE.

Ich habe mit den Einstellungen im Flexform
<showPossibleLocalizationRecords>0</showPossibleLocalizationRecords>
<showRemovedLocalizationRecords>0</showRemovedLocalizationRecords>
<showSynchronizationLink>0</showSynchronizationLink>
<showAllLocalizationLink>0</showAllLocalizationLink>

herumgespielt - ohne Erfolg. Ein Click auf den Localization Link tut gar nix.
Wenn ich das Bild im lokalisierten DCE lösche und ein anderes hochlade, kommt trotzdem das Bild ausdem Original-Datensatz an.
mit showPossibleLocalizationRecords wird der Original-Datensatz angezeigt, aber ausgegraut.

Ich denke, es muss noch immer ein Probblem in meiner Flexform Konfiguration sein, aber was und wo... kein Ahnung