{namespace vh=Newland\NeosViewHelpers\ViewHelpers}
{namespace components=Newland\NeosCommon\ViewHelpers}

<f:comment>
    <!--
        This partial is responsible for rendering the result list which
        is used in both the initial list view and the facet/search result
        ajax response.
    -->
</f:comment>

<p>{pagination.count.items} Results</p>

<f:if condition="{articles -> f:count()} > 0">
    <f:then>
        <f:for each="{articles}" as="article">
            <vh:render
                partial="PointOfInterests/List/Article"
                arguments="{article: article, node: node}" />

        </f:for>
    </f:then>
    <f:else>
        <p>Für Ihre Suche konnten leider keine Ergebnisse gefunden werden</p>
    </f:else>
</f:if>

<components:pagination
    currentPage="{pagination.page}"
    totalPageCount="{pagination.count.pages}"
/>
