{% for section in secciones %} + {{ render(controller( 'App\\Controller\\SectionController::mostrarSection', {id: section.id} )) }} diff --git a/templates/models/sections/avanza.html.twig b/templates/models/sections/avanza.html.twig index 4e756fea..e7bb50c7 100644 --- a/templates/models/sections/avanza.html.twig +++ b/templates/models/sections/avanza.html.twig @@ -5,7 +5,7 @@
+ style="background-image: url({{ asset('images/avanza/fondo-camino-index.jpg') }}); background-repeat: no-repeat; background-size:cover">

diff --git a/templates/models/sections/card-section.html.twig b/templates/models/sections/card-section.html.twig index 7636b0b5..8a9d3665 100644 --- a/templates/models/sections/card-section.html.twig +++ b/templates/models/sections/card-section.html.twig @@ -8,7 +8,12 @@ {% for entrada in entradas %} {# include 'modelEntrada/'~entrada.modelTemplate~'.html.twig' ignore missing with { 'section':entrada } #} - {% include 'models/entradas/'~entrada.modelTemplate~'.html.twig' ignore missing with { 'entrada':entrada } %} + {% if(entrada.modelTemplate) %} + {% set model = entrada.modelTemplate %} + {% else %} + {% set model = 'default' %} + {% endif %} + {% include 'models/entradas/'~model~'.html.twig' ignore missing with { 'entrada':entrada } %} {% endfor %}

diff --git a/templates/models/sections/contenido-img-embed.html.twig b/templates/models/sections/contenido-img-embed.html.twig index dd8be12c..3a996f06 100644 --- a/templates/models/sections/contenido-img-embed.html.twig +++ b/templates/models/sections/contenido-img-embed.html.twig @@ -19,7 +19,7 @@
-
+
@@ -70,7 +70,7 @@ {% if (entrada.imageFilename) %} {{ entrada.linkRoute }} {% endif %} diff --git a/templates/models/sections/image-centro.html.twig b/templates/models/sections/image-centro.html.twig index bc0b6940..a1f323e5 100644 --- a/templates/models/sections/image-centro.html.twig +++ b/templates/models/sections/image-centro.html.twig @@ -7,7 +7,7 @@ seccion: true #}
-
+
{{ section.title | striptags | raw }} {{ section.contenido | replace({'

':'', '

':'
'}) | raw }} @@ -52,6 +52,6 @@ seccion: true {% endfor %}
- {% endfor %} +