Browse Source

affichage nvx champs module

ouidade 3 years ago
parent
commit
405e5094ee

+ 1 - 1
user/themes/epau-antimatter/templates/modular/features.html.twig

@@ -18,7 +18,7 @@
             <p>{{ feature.text }}</p>
             {% endif %}
             {% if feature.logo %}
-            <img src="{{ page.media[page.header.feature.logo].url }}" alt=“logo_programme”/>
+            <img src="{{ page.media[page.header.features.logo] }}" alt=“logo_programme” />
             {% endif %}
             </div>
         </div>

+ 5 - 5
user/themes/epau-antimatter/templates/modular/personnes.html.twig

@@ -8,16 +8,16 @@
             <div class="feature-content icon-offset">
             {% else %}
 
-{# ai essayé de changer les nom et class avec nouveaux champs mais marche pas #}
             <div class="feature-content">
             {% endif %}
             {% if feature.nom %}
             <h4>{{ feature.nom }}</h4>
             {% endif %}
-
-
-            {% if personnes.biographie %}
-            <p>{{ personnes.biographie }}</p>
+            {% if feature.fonction %}
+            <h6>{{ feature.fonction }}</h6>
+            {% endif %}
+            {% if feature.biographie %}
+            <p>{{ feature.biographie }}</p>
             {% endif %}
             </div>
         </div>