Hallo an die Community,
ich versuche bei der tx_news von Georg ein Bild bzw. dessen Pfad per Typoscript anzuzeigen. Bei Pages funktioniert das super.
Zuerst mal mein Code (Versuch):
10 = COA
10 {
stdWrap.wrap = <meta property="og:image" content="{$baseURL}|" />
stdWrap.required = 1
stdWrap.htmlSpecialChars = 1
10 = FILES
10 {
references {
table = tx_news_domain_model_news
uid.field = uid
fieldName = fal_media
}
begin = 0
maxItems = 1
renderObj = IMG_RESOURCE
renderObj {
file {
width = 1000m
import.data = file:current:publicUrl
treatIdAsReference = 1
}
}
}
}
Ich bekomme daraufhin eine Fehlermeldung:
#1: PHP Catchable Fatal Error: Argument 3 passed to TYPO3\CMS\Frontend\Page\PageRepository::getFileReferences() must be of the type array, null given, called in .../typo3cms/typo3_src-6.2.4/typo3/sysext/frontend/Classes/ContentObject/FilesContentObject.php on line 317 and defined in .../typo3cms/typo3_src-6.2.4/typo3/sysext/frontend/Classes/Page/PageRepository.php line 1357
Hat jemand eine Idee wie ich das lösen kann?
Verwendent wird: TYPO3 6.2.4, PHP 5.5, MySql 5.28
Viele Grüße
Thomas
P.S.: Die TYPO3 Version ist in diesem Forum wohl bei 6.1.7 stehen geblieben, eine höhere Version kann man nähmlich nicht auswählen.