Skip to content

Instantly share code, notes, and snippets.

@augustohp
Forked from wesleyvicthor/gist:1392133
Created November 29, 2011 01:03
Show Gist options
  • Save augustohp/1402858 to your computer and use it in GitHub Desktop.
Save augustohp/1402858 to your computer and use it in GitHub Desktop.
twig array
{% if cases_list.ProcessInstance is defined %}
{% for case in cases_list.ProcessInstance %}
{% for activity in case.activities.children() %}
<tr>
{% for variable in case.clientVariables.children() %}
{{ set value = variable.xpath('string[2]') }}
<td>{{ array_pop(value) }}</td>
{% endfor %}
<td><a href="{{ cloud_link_address }}{{ activity.uuid.value }}" target="_blank">{{ activity.name }}</a></td>
<td>#</td>
</tr>
{% endfor %}
{% endfor %}
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment