Skip to content
Snippets Groups Projects
Commit 92198be3 authored by Alexa Valentová's avatar Alexa Valentová
Browse files

fix custom position blocks

parent c978cd0b
No related branches found
No related tags found
2 merge requests!1161Release,!1160fix custom position blocks
Pipeline #19915 passed
......@@ -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 %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment