From a0bee7baddd510ab7bcbd1c3212f1372fd71139f Mon Sep 17 00:00:00 2001 From: Jon Uhlmann Date: Thu, 25 Jul 2024 13:44:18 +0200 Subject: [PATCH] New: Add caption to lightbox --- NodeTypes/Content/Image.yaml | 1 + Resources/Private/Fusion/ContentElements/Image.fusion | 1 + 2 files changed, 2 insertions(+) diff --git a/NodeTypes/Content/Image.yaml b/NodeTypes/Content/Image.yaml index b192f1c..731d521 100644 --- a/NodeTypes/Content/Image.yaml +++ b/NodeTypes/Content/Image.yaml @@ -4,6 +4,7 @@ 'Carbon.Image:Image': true 'Carbon.Image:AlternativeText': true 'Carbon.Image:Lightbox': true + 'Carbon.Image:Caption': true 'Carbon.Image:Link': true 'Carbon.Image:BackendLabel': true ui: diff --git a/Resources/Private/Fusion/ContentElements/Image.fusion b/Resources/Private/Fusion/ContentElements/Image.fusion index 321be7d..1112e80 100644 --- a/Resources/Private/Fusion/ContentElements/Image.fusion +++ b/Resources/Private/Fusion/ContentElements/Image.fusion @@ -7,6 +7,7 @@ prototype(Jonnitto.ImagesInARow:Image) < prototype(Neos.Neos:ContentComponent) { alternativeText = ${q(node).property('alternativeText')} link = ${q(node).property('link')} lightbox = ${q(node).property('lightbox')} + lightboxCaption = ${q(node).property('caption')} imageSourceSettings = Neos.Fusion:DataStructure { dummyBaseWidth = 300