url button tout voir dyamique
This commit is contained in:
@@ -22,11 +22,17 @@
|
||||
]
|
||||
%}
|
||||
{% if grouped_rows is defined %}
|
||||
{% set base_url = path('<front>') ~ 'ressources' %}
|
||||
{% for type_class, group in grouped_rows %}
|
||||
<div class="view-type-slide {{ type_class }}">
|
||||
<h3 class="{{ type_class }}">{{ group.label }}</h3>
|
||||
<button class="tout-voir" type="button" style="" target="_blank"><a href="https://stage.eql.figli.io/ressources?field_type_de_media_target_id=All&field_type_de_ressource_target_id=595&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine="> Tout voir</a></button>
|
||||
|
||||
{% if group.tid is defined %}
|
||||
<button class="tout-voir" type="button">
|
||||
<a href="{{ base_url }}?field_type_de_media_target_id=All&field_type_de_ressource_target_id={{ group.tid }}&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine=" target="_blank" rel="noopener noreferrer">
|
||||
Tout voir
|
||||
</a>
|
||||
</button>
|
||||
{% endif %}
|
||||
<div class="views-row-wrapper">
|
||||
{% for row in group.rows %}
|
||||
<div{{ row.attributes.addClass('views-row') }}>
|
||||
|
||||
Reference in New Issue
Block a user