prototype(Newland.CityTheme:PressArticle) < prototype(Neos.NodeTypes:Page) {
    body {
        showIntro = ${false}
        showHero = ${false}

        dateFormat = ${'d. MMMM yyyy'}

        locale = ${q(node.context.dimensions.language).get(0)}

        articlePublishingDate = ${Date.format(q(node).property('articlePublishingDate'), 'd.m.Y')}
        articleTitle = ${q(node).property('articleTitle')}
        articleSubtitle = ${q(node).property('articleSubtitle')}
        articleIntro = ${q(node).property('articleIntro')}
        articleIntro.@process.convertUris = Neos.Neos:ConvertUris
        articleBody = ${q(node).property('articleBody')}
        articleBody.@process.convertUris = Neos.Neos:ConvertUris

        articleImage = ${q(node).property('articleImage')}
        
        articleImageCaption = Neos.Fusion:Case {
            hasCopyright {
                condition = ${!String.isBlank(q(node).property('articleImage').copyrightnotice)}
                renderer = ${(String.trim(String.stripTags(q(node).property('articleImage').caption)) ? q(node).property('articleImage').caption : q(node).property('articleImage').title) + ' © ' + q(node).property('articleImage').copyrightnotice}
            }
            fallback {
                condition = TRUE
                renderer = ${String.trim(String.stripTags(q(node).property('articleImage').caption)) ? q(node).property('articleImage').caption : q(node).property('articleImage').title}
            }
        }

        alternativeText = Neos.Fusion:Case {
            isImagePropertyCaption {
                condition = ${!String.isBlank(q(node).property('articleImage').caption)}
                renderer = ${String.trim(String.stripTags(q(node).property('articleImage').caption))}
            }
            fallback {
                condition = TRUE
                renderer = ${q(node).property('articleImage').title}
            }
        }

        articlePressContacts = ${q(node).property('pressContacts')}
        articlePressDownloads = ${q(node).property('pressDownloads')}
        articlePressImages = ${q(node).property('pressImages')}

        lib.convertUris = Neos.Neos:ConvertUris
    }
}
