Skip to content
Snippets Groups Projects
Commit e37b6fcf authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-6611: fixing listing page tempate for events

parent 1b9be0dc
No related branches found
No related tags found
1 merge request!114ISTWCMS-6611: adding template for views view unformatted, which adds index to variables
{% for data in node_data %}
{% set new_node_data = [] %}
{% for nd in node_data %}
{% set new_node_data = new_node_data|merge([
nd|merge({
'#uw_index': loop.index,
'#uw_row_count': rows|length
})
]) %}
{% endfor %}
{% for data in new_node_data %}
<div class="views-row">
{% include '@components/card/card--teaser/_card--teaser.twig' with {
'teaser': data,
......
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