{% set suffix = suffix | default('') %}
{# if disallowed is extended also check gletscheWein and landingPage template as those override this parameter #}
{% set defaultDisallowed = ['email*', 'newsletter*', 'landingpage*', 'teaser-list-bus-travel', 'teaser-list-young-styria-accommodation', 'teaser-list-young-styria-infrastructure', 'teaser-list-package', 'teaser-list-convention-partner', 'teaser-list-convention-incentive'] %}
{% if document.property('allowBusTravelAreas') %}
{% set defaultDisallowed = ['email*', 'newsletter*', 'landingpage*', 'teaser-list-young-styria-accommodation', 'teaser-list-young-styria-infrastructure', 'teaser-list-package', 'teaser-list-convention-partner', 'teaser-list-convention-incentive'] %}
{% elseif document.property('allowYoungStyriaAccommodationArea') %}
{% set defaultDisallowed = ['email*', 'newsletter*', 'landingpage*', 'teaser-list-bus-travel', 'teaser-list-young-styria-infrastructure', 'teaser-list-package', 'teaser-list-convention-partner', 'teaser-list-convention-incentive'] %}
{% elseif document.property('allowYoungStyriaInfrastructureArea') %}
{% set defaultDisallowed = ['email*', 'newsletter*', 'landingpage*', 'teaser-list-bus-travel', 'teaser-list-young-styria-accommodation', 'teaser-list-package', 'teaser-list-convention-partner', 'teaser-list-convention-incentive'] %}
{% elseif document.property('allowPackageArea') %}
{% set defaultDisallowed = ['email*', 'newsletter*', 'landingpage*', 'teaser-list-bus-travel', 'teaser-list-young-styria-accommodation', 'teaser-list-young-styria-infrastructure','teaser-list-convention-partner', 'teaser-list-convention-incentive'] %}
{% elseif document.property('allowConventionPartnerArea') %}
{% set defaultDisallowed = ['email*', 'newsletter*', 'landingpage*', 'teaser-list-bus-travel', 'teaser-list-young-styria-accommodation', 'teaser-list-young-styria-infrastructure', 'teaser-list-package','teaser-list-convention-incentive'] %}
{% elseif document.property('allowConventionIncentiveArea') %}
{% set defaultDisallowed = ['email*', 'newsletter*', 'landingpage*', 'teaser-list-bus-travel', 'teaser-list-young-styria-accommodation', 'teaser-list-young-styria-infrastructure', 'teaser-list-package', 'teaser-list-convention-partner'] %}
{% endif %}
{% set disallowed = disallowed | default(defaultDisallowed) %}
{% set allowed = allowed | default({}) %}
{% if document.property('standortPortal') and allowed is not empty %}
{% set allowed = allowed|merge(['media-video']) %}
{% endif %}
{% set areas = elements_areabrick(allowed, disallowed, true, [], areaParams | default([]), globalParams | default([])) %}
{% set defaultAreaName = 'content' %}
{% if areaName is defined and areaName is not empty %}
{% set defaultAreaName = areaName %}
{% endif %}
{% if params is defined and params is not empty %}
{% set areas = areas|merge(params) %}
{% endif %}
{% set limits = limits | default ({
'limits' : {
'media-gallery' : 2,
'content-timeline' : 1,
'content-download' : 1,
'content-text-slider' : 3,
'media-tile-gallery' : 1,
'media-video' : 1,
'teaser-img-slider' : 2,
'teaser-experience-slider' : 2,
'teaser-grid' : 1,
'teaser-tour-row' : 1,
'teaser-offer' : 3,
'teaser-top-offer' : 1,
'landingpage-inquiry' : 1,
'media-img-text-slide-rotating' : 3,
'teaser-list-bus-travel': 1,
'teaser-list-young-styria-accommodation': 1,
'teaser-list-young-styria-infrastructure': 1,
'teaser-list-package': 1,
'teaser-list-convention-partner': 1,
'teaser-list-convention-incentive': 1,
'demi-infrastructure-list': 1
}
}) %}
{% set areas = areas | merge(limits)%}
{{ pimcore_areablock( defaultAreaName ~ suffix, areas ) }}