From b93ea7a787100820827a61bed997c8c03e893de1 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Fri, 3 Jan 2025 16:11:52 +0100 Subject: [PATCH] improve manufacturer block content --- .../page/details/inc/accordeon.html.twig | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/views/twig/extensions/themes/default/page/details/inc/accordeon.html.twig b/views/twig/extensions/themes/default/page/details/inc/accordeon.html.twig index 4b2c2c6..849c3a6 100644 --- a/views/twig/extensions/themes/default/page/details/inc/accordeon.html.twig +++ b/views/twig/extensions/themes/default/page/details/inc/accordeon.html.twig @@ -4,17 +4,19 @@ {{ parent() }} {% set oManufacturer = oView.getManufacturer() %} - {% set sShopURL = config.getConfigParam('sShopURL') %} - {% set description = oManufacturer.d3GetLongdesc() %} + {% if oManufacturer && oManufacturer.getId() %} + {% set sShopURL = config.getConfigParam('sShopURL') %} + {% set description = oManufacturer.d3GetLongdesc() %} - {% if oManufacturer and config.d3GetBoolModuleSettingByName('_showManufacturertextOnDetailsPage') and description|striptags|trim %} -
- + {% endif %} {% endif %} {% endblock %} \ No newline at end of file