{% set breadcrumbs = [] %}
{% if childCategoriesObjects is defined and childCategoriesObjects|length == 0 %}
{% set breadcrumbs = breadcrumbs | merge([{
"title": "Producten"|trans,
"anchor" : "table-anchor"|trans
}]) %}
{% endif %}
{% if childCategoriesObjects is defined and childCategoriesObjects|length > 0 %}
{% set breadcrumbs = breadcrumbs | merge([{
'title': "Aanbod"|trans,
'anchor' : "products-anchor"|trans
}]) %}
{% endif %}
{% set breadcrumbs = breadcrumbs | merge([{
'title': "Toepassingen"|trans,
'anchor' : "applications-anchor"|trans
}]) %}
{% set breadcrumbs = breadcrumbs | merge([{
'title' : "Werking en accessoires"|trans,
'anchor' : "method-and-acccessoires-anchor"|trans
}]) %}
{% set breadcrumbs = breadcrumbs | merge([{
'title' : "Gebruik"|trans,
'anchor' : "usage-anchor"|trans
}]) %}
{% set breadcrumbs = breadcrumbs | merge([{
'title' : "Veelgestelde vragen"|trans,
'anchor' : "faq-anchor"|trans
}]) %}
{{ pimcore_area('content-brick-1', {
'type':'content-brick',
'params':{
'content-brick': {
'containerClasses': 'md:py-20',
'productCategory': productCategory,
'forceH1' : true,
'defaultLayout': 'text-gallery',
'defaultBackgroundColor':'bg-white',
'defaultInverted': true,
'defaultTitle' : productCategory.title ?? page.title,
'defaultHeadline' : productCategory.subtitle ?? null,
'defaultWysiwyg' : productCategory.desc ?? page.description,
'defaultGalleryItems' : productCategory.mediaGalleryItems is defined and (productCategory.mediaGalleryItems|length) > 1 ? (productCategory.mediaGalleryItems | slice(1, 4)) : null,
'defaultSecondaryLink' : childCategoriesObjects is defined and childCategoriesObjects|length == 0 ? {
'title': 'Bekijk de {{ productCategory }}' | trans({ '{{ productCategory }}': (productCategory.name ?? page.title) }),
'link': "#table-anchor",
'target': "",
} : false
}
}
}) }}
{{ pimcore_area('features', {
'type':'features-brick',
'params':{
'features-brick': {
'brickBackgroundColor': 'bg-white',
'productCategory': productCategory
}
}
}) }}
{% if childCategoriesObjects is defined and childCategoriesObjects|length == 0 %}
{# See params above in content-brick-1 -> params -> defaultSecondaryLink -> link = #table-anchor, also breadcrumbs #}
<div id="table-anchor">
{{ pimcore_area('product-table-brick-1',{
'type':'product-table-brick',
'params': {
'product-table-brick': {
'defaultTitle': ('{{ productCategory }} huren') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key) }),
'productCategory': productCategory
}
}
}) }}
</div>
{% endif %}
{% if childCategoriesObjects is defined and childCategoriesObjects|length > 0 %}
<div id="products-anchor">
{{ pimcore_area('product-category-cards-brick', {
type: 'product-category-cards-brick',
params: {
'product-category-cards-brick': {
showTitle: true,
defaultTitle: ('Aanbod {{ productCategory }}') | trans({'{{ productCategory }}': (productCategory.name ?? page.title) }),
fourColumns: false,
productCategories: childCategoriesObjects
}
}
}) }}
{{ pimcore_area('text-and-links-brick-1', {
'type':'text-and-links-brick',
'params':{
'text-and-links-brick': {
style: 'normal',
}
}
}) }}
</div>
{% endif %}
<div id="applications-anchor">
{{ pimcore_area('unique-selling-point-brick-1', {
'type':'unique-selling-point-brick',
'params': {
'unique-selling-point-brick': {
'brickBackgroundColor' : 'bg-blue-300',
'defaultTitle': ('Toepassingen {{ productCategory }}') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key) }),
}
}
}) }}
</div>
<div id="method-and-acccessoires-anchor">
{{ pimcore_area('content-brick-2', {
'type':'content-brick',
'params': {
'content-brick': {
'layout': 'text-usps',
'uspsActive' : true,
'brickBackgroundColor': 'bg-gray-200',
'defaultTitle': ('Werking en accessoires {{ productCategory }}') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key) }),
}
}
}) }}
</div>
{{ pimcore_area("testimonial-brick-1", {
'type' : "testimonial-brick" })
}}
{{ pimcore_area('product-category-cards-brick-1', {
'type':'product-category-cards-brick',
'params':{
'product-category-cards-brick': {
'defaultTitle': ('Alternatieven voor {{ productCategory }}') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key) }),
'brickBackgroundColor' : 'bg-blue-200',
'defaultBackgroundColor' : 'bg-blue-200',
}
}
}) }}
{{ pimcore_area('content-brick-3', {
'type':'content-brick',
'params':{
'content-brick': {
'layout': 'text-image',
}
}
}) }}
<div id="usage-anchor">
{{ pimcore_area('content-brick-4', {
'type':'content-brick',
'params':{
'content-brick': {
'layout': 'text-image',
'whiteSpaceBottom': false,
'defaultInverted': true,
}
}
}) }}
</div>
<div id="faq-anchor">
{{ pimcore_inc(document.getProperty('faqSnippet')) }}
</div>