prototype(Newland.CityTheme:PressImageList) < prototype(Neos.Neos:Content) {

    // Finds all PressImages available (in the site)
    //pressImages = ${q(site).find('[instanceof Newland.CityTheme:PressImage]').sort('articlePublishingDate', 'DESC')}

    // Finds all PressImages underneath the Parent Page in the tree, without sorting them
    pressImages = ${q(node).closest('[instanceof Neos.NodeTypes:Page]').find('[instanceof Newland.CityTheme:PressImage]')}

    link = ${q(node).property('link')}
    link.@process.convertUris = Neos.Neos:ConvertUris

    showAll = ${q(node).property('showAll')}

    @cache {
        mode = 'uncached'
        context {
            1 = 'node'
            2 = 'documentNode'
        }
    }
}
