From 92198be39b64849d12b56585bbc167d505b3c606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexa=20Valentov=C3=A1?= <git@imaniti.org> Date: Tue, 8 Oct 2024 07:44:39 +0200 Subject: [PATCH] fix custom position blocks --- shared/templates/styleguide2/people_page.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/shared/templates/styleguide2/people_page.html b/shared/templates/styleguide2/people_page.html index 9137de64..e09c8e3f 100644 --- a/shared/templates/styleguide2/people_page.html +++ b/shared/templates/styleguide2/people_page.html @@ -64,11 +64,13 @@ {% if block.value.person_list_with_custom_positions|length %} {% for person in block.value.person_list_with_custom_positions %} {% with person.page as person_page %} - {% image person_page.specific.get_profile_image fill-480x480 as profile_image %} + {% with person_page.specific as person_page %} + {% image person_page.get_profile_image fill-480x480 as profile_image %} - {% firstof person.position person_page.position as position %} + {% firstof person.position person_page.position as position %} - {% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with image=profile_image name=person_page.title function=position telephone=person_page.phone mail=person_page.email url=person_page.url %} + {% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with image=profile_image name=person_page.title function=position telephone=person_page.phone mail=person_page.email url=person_page.url %} + {% endwith %} {% endwith %} {% endfor %} {% endif %} -- GitLab