Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit afc522cd authored by escuriola's avatar escuriola Committed by drishu
Browse files

OEL-1552: Theming person for teaser view.

parent 3dca9f33
No related branches found
No related tags found
1 merge request!162OEL-1552: Theme the person content type
......@@ -7,15 +7,19 @@
{% set _title %}
<a class="standalone" href="{{ url }}">{{ label }}</a>
{% endset %}
{% set _meta = [] %}
{% if not node.oe_sc_person_position.isEmpty() %}
{% set _meta = _meta|merge([content.oe_sc_person_position|field_value]) %}
{% endif %}
{% if not node.oe_sc_person_occupation.isEmpty() %}
{% set _meta = _meta|merge([content.oe_sc_person_occupation|field_value]) %}
{% endif %}
{% block content %}
{{ pattern('card', {
variant: 'search',
title: _title,
text: content.oe_summary,
image: image,
meta: [
content.oe_sc_person_position|field_value
],
attributes: attributes,
}) }}
{{ pattern('card', {
variant: 'search',
title: _title,
image: image,
meta: _meta,
attributes: attributes,
}) }}
{% endblock %}
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