{% for entity in news_list %}
{% set tags = '' %}
{% if entity.tags|length > 0 %}
{% for tag in entity.tags %}
{% set tags = tags ~ '
[' ~ tag.tag ~ '] ' %}
{% endfor %}
{% endif %}
{% endfor %}
{{ knp_pagination_sortable(news_list, 'Status', 'e.enabled') }} |
{{ knp_pagination_sortable(news_list, 'Approved', 'e.approved') }} |
{{ knp_pagination_sortable(news_list, 'Image', 'e.orig_path') }} |
{{ knp_pagination_sortable(news_list, 'Contributor', 'c.customer') }} |
{{ knp_pagination_sortable(news_list, 'Title', 'e.title') }} |
{{ knp_pagination_sortable(news_list, 'Tags', 'cs.tags') }} |
{{ knp_pagination_sortable(news_list, 'Date', 'cs.date') }} |
|
) }}) |
) }}) |
{{ entity.origPath|trim }} |
{% if entity.getCustomer is not null %}{{ entity.getCustomer.getFirstname|trim }} {{ entity.getCustomer.getLastname|trim }}{% endif %} |
{{ entity.title|trim }} |
{{ tags|raw }} |
{{ entity.date|date("Y/m/d") }} |
|