[TYPO3-english] Using FAL on translated pages
Armin Ruediger Vieweg
armin at v.ieweg.de
Tue Apr 22 11:47:30 CEST 2014
Hi,
I would like to output images from media field in pages table. Or from media field in pages_language_overlay table, when I am on a translated page.
I just get the images from default language (pages). I am using the FILES cObject:
10 = FILES
10 {
begin = 0
maxItems = 1
references {
table = pages
uid.data = page:uid
fieldName = media
}
renderObj = IMAGE
renderObj { ... }
}
I have also added this condition:
[globalVar = GP:L = 1]
... .10.references {
table = pages_language_overlay
uid.data = page:uid
}
[global]
This would work if page:uid would be the id of the overlay. But page:uid returns always the uid of original page. But FAL stores the uid of the pages_language_overlay. So, how do I access the media of the translation?
And why is page:uid not returning the uid of the translation? Because uid is defined as $GLOBALS['TYPO3_CONF_VARS']['FE']['pageOverlayFields']. page:title works, which is also defined in pageOverlayFields.
Thanks in advance,
Armin
More information about the TYPO3-english
mailing list