prototype(Newland.CityTheme:MediaSliderImage) < prototype(Neos.Neos:Content) {
    alternativeText = Neos.Fusion:Case {
        isImagePropertyCaption {
            condition = ${!String.isBlank(q(node).property('image').caption)}
            renderer = ${String.trim(String.stripTags(q(node).property('image').caption))}
        }
        fallback {
            condition = TRUE
            renderer = ${q(node).property('image').title}
        }
    }

    caption = Neos.Fusion:Case {
        isNodePropertyCaptionAndCopyright {
            condition = ${String.trim(String.stripTags(q(node).property('description')))!= '' && q(node).property('image').copyrightnotice != ''}
            renderer = ${String.trim(String.stripTags(q(node).property('description'))) + ' © ' + q(node).property('image').copyrightnotice}
        }
        isNodePropertyCaptionAndNoCopyright {
            condition = ${String.trim(String.stripTags(q(node).property('description')))!= '' && q(node).property('image').copyrightnotice == ''}
            renderer = ${String.trim(String.stripTags(q(node).property('description')))}
        }
        isImagePropertyCaption {
            condition = ${q(node).property('image').caption != '' && q(node).property('image').copyrightnotice != ''}
            renderer = ${q(node).property('image').caption + ' © ' + q(node).property('image').copyrightnotice}
        }
        fallback {
            condition = TRUE
            renderer = ${q(node).property('image').caption}
        }
    }

    captionWithoutCopyright = Neos.Fusion:Case {
        isNodePropertyCaptionAndCopyright {
            condition = ${String.trim(String.stripTags(q(node).property('description')))!= ''}
            renderer = ${String.trim(String.stripTags(q(node).property('description')))}
        }
        fallback {
            condition = TRUE
            renderer = ${q(node).property('image').caption}
        }
    }
}
