Skip to content

Commit 7e3c72b

Browse files
committed
BUGFIX: Cleanup keyvisual rendering conditions
1 parent 763d756 commit 7e3c72b

File tree

6 files changed

+11
-19
lines changed

6 files changed

+11
-19
lines changed

DistributionPackages/Neos.MarketPlace/Resources/Private/Fusion/Documents/DefaultPage.fusion

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
prototype(Neos.MarketPlace:DefaultPage) < prototype(Neos.NeosIo:DefaultPage) {
2-
header.keyVisual >
3-
42
prototype(Neos.NeosIo:Fragment.PageStyles) {
53
neosMarketPlace = Neos.Fusion:Component {
64
@position = 'after main'
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
prototype(Neos.NeosConIo:Speakers) < prototype(Neos.NeosIo:DefaultPage) {
2-
header.keyVisual.content = Neos.Neos:ContentCollection {
3-
nodePath = 'keyvisual'
4-
}
52
}
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
prototype(Neos.NeosConIo:Talks) < prototype(Neos.NeosIo:DefaultPage) {
2-
header.keyVisual.content = Neos.Neos:ContentCollection {
3-
nodePath = 'keyvisual'
4-
}
52
}

DistributionPackages/Neos.NeosIo/Resources/Private/Fusion/Documents/DefaultPage.fusion

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,17 @@ prototype(Neos.NeosIo:DefaultPage) < prototype(Neos.Fusion:Component) {
55
keyVisualImage = ${q(documentNode).property('keyVisualImage')}
66
keyVisualImageSmall = ${q(documentNode).property('keyVisualImageSmall')}
77
isKeyVisualContentsInverted = ${q(documentNode).property('isKeyVisualContentsInverted')}
8-
content = Neos.Neos:ContentCollection {
9-
nodePath = 'keyvisual'
8+
content = Neos.Fusion:Case {
9+
hasContentSection {
10+
condition = ${q(documentNode).is('[instanceof Neos.NeosIo:KeyVisualMixin]')}
11+
renderer = Neos.Neos:ContentCollection {
12+
nodePath = 'keyvisual'
13+
}
14+
}
15+
fallback {
16+
condition = true
17+
renderer = ''
18+
}
1019
}
1120
}
1221
breadcrumb = Neos.NeosIo:Fragment.BreadcrumbMenu

DistributionPackages/Neos.NeosIo/Resources/Private/Fusion/Documents/Page/DocumentationPage.fusion

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
prototype(Neos.NeosIo:DocumentationPage) < prototype(Neos.NeosIo:DefaultPage) {
22
header {
3-
keyVisual {
4-
content = Neos.Neos:ContentCollection {
5-
nodePath = 'keyvisual'
6-
}
7-
}
83
breadcrumb >
94
}
105
content {

DistributionPackages/Neos.NeosIo/Resources/Private/Fusion/Documents/Page/LandingPage.fusion

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ prototype(Neos.NeosIo:LandingPage) < prototype(Neos.NeosIo:DefaultPage) {
33
// to use the "large" key visual, we need to append a CSS class to the outer container; and change the default-Image.
44
prototype(Neos.NeosIo:KeyVisual.AbstractRenderer).classes.@process.appendLarge = ${value + " keyVisual--large"}
55
prototype(Neos.NeosIo:KeyVisual.StaticPlaceholderImageRenderer).@context.staticUrlPrefix.path = 'Images/DefaultKeyvisual'
6-
7-
content = Neos.Neos:ContentCollection {
8-
nodePath = 'keyvisual'
9-
}
106
}
117

128
content.renderer >

0 commit comments

Comments
 (0)