我正在使用TYPO3 7.6.14
,我的网站是双语“英语”和“日语”。我的编辑翻译了所有英文内容,还有图像的FAL元数据,如'description','alt-text'和'title',s。屏幕截图。
翻译整个页面,只有FAL
- 来自图像的数据失败(截图)。我不知道为什么?有人看到我的错吗?
我很感激任何帮助,因为我根本不知道它是什么......谢谢。
这是TCA
...
'additional_information' => array(
'exclude' => 1,
'label' => 'LLL:EXT:products/Resources/Private/Language/locallang_db.xlf:tx_products_domain_model_product.additional_information',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'additional_information',
array(
'appearance' => array(
'createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference'
),
'foreign_types' => array(
'0' => array(
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
),
\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array(
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
)
),
'maxitems' => 10
),
$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
),
),
...
和Fluid
- 模板(标题:photo.originalResource.properties.description
)
<f:for each="{product.additionalInformation}" as="photo" iteration="iterator">
<div class="column">
<a class="lightbox2" href="{f:uri.image(src: photo.originalResource.publicUrl, width: 1024)}" data-lightbox="{product.uid}" title="{photo.originalResource.properties.description}">
<f:image src="{photo.originalResource.originalFile.uid}" alt="" />
<span class="caption"> {photo.originalResource.properties.description}</span>
</a>
</div>
</f:for>
前端输出:
答案 0 :(得分:1)
尝试将<f:image src="{photo.originalResource.originalFile.uid}" alt="" />
替换为<f:image image="{photo}" alt="" />
。
可能是FAL翻译未得到适当支持。请查看Georg Ringer的news
扩展程序。如果它不在那里工作,那么根本不起作用。