Skip to content

Commit

Permalink
Merge pull request #113 from TYPO3incubator/bugfix/hero-image
Browse files Browse the repository at this point in the history
Bugfix/hero image
  • Loading branch information
GeorgeTodea authored Apr 12, 2024
2 parents ca39d1b + f47781b commit 659b55e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@ tt_content {
hero =< lib.contentElement
hero {
templateName = Hero

dataProcessing.10 = files
dataProcessing.10 {
as = images
references.fieldName = image
references.table = tt_content
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@
],
'image' => [
'config' => [
'minitems' => '1',
'minitems' => 1,
'maxitems' => 1,
'appearance' => [
'enabledControls' => ['hide' => false]
]
],
],
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h3 class="hero--title">{data.header}</h3>
</div>
</div>
</div>
<f:image class="hero--image" src="{data.image}" treatIdAsReference="1"/>
<f:image class="hero--image" image="{images.0}" />
</div>

</html>
Expand Down

0 comments on commit 659b55e

Please sign in to comment.