-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Labels
SupportSupport on how to use functionalitiesSupport on how to use functionalities
Description
Hello
I want to create a carousel preview of selected news and articles with images using an extension riendsoftypo3/content-blocks.
Everything works fine with text, but I can't get the images to display.
TYPO3v13, PHP 8.3
"friendsoftypo3/content-blocks": "^1.1",
"georgringer/news": "^12.2",
yaml
- identifier: record_select
type: Relation
label: Datensatz wählen
description: News Slider
allowed: 'tt_content,tx_news_domain_model_news'
suggestOptions:
additionalSearchFields: 'header, list_type, uid, CType'
addWhere: 'AND (tt_content.CType IN ("list", "text", "header") OR tt_content.list_type IN ( "news_pi1, "falMedia", ))'
searchWholePhrase: true
default:
additionalSearchFields: 'title, url, uid '
addWhere: 'AND (tt_content.CType IN ("list", "text", "header") OR tt_content.list_type IN ( "news_pi1, "falMedia", ))'
HTML
<f:if condition="{data.record_select}">
<f:for each="{data.record_select}" as="newsItem">
<h3>{newsItem.title}</h3> in {newsItem.categories.0.title}
<h3>{newsItem.header}</h3>
{newsItem.bodytext -> f:format.html()}
<f:format.date >{newsItem.datetime}</f:format.date>
<!-- TEST -->
{newsItem.falMedia.0.description} uid-{newsItem.uid}
<!-- it doesn't work -->
<f:for each="{newsItem.falMedia}" as="file">
<f:image image="{file}" class=" " alt="{file.alternative}" />
<f:if condition="{file.title}">
<h4 class="">{file.title}</h4>
</f:if>
<f:if condition="{file.description}">
<i class="">{file.description}</i>
</f:if>
</f:for>
</f:for>
</f:if>
Can you give me some tips on this?
Metadata
Metadata
Assignees
Labels
SupportSupport on how to use functionalitiesSupport on how to use functionalities