prototype(Newland.CityTheme:Webcam) < prototype(Neos.Neos:Content) {
    templatePath = 'resource://Newland.CityTheme/Private/Templates/NodeTypes/Webcam.html'
    
    title = ${q(node).property('title')}
    distribution = ${q(node).property('distribution')}
    embedCode = ${q(node).property('embedCode')}
    url = ${q(node).property('url')}
    externalTarget = ${q(node).property('externalTarget')}

    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}
        }
    }
}
