From 6dc408619bd6f3273f1e8058c9f13a05905e593d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Wed, 21 Nov 2018 10:35:34 -0500 Subject: [PATCH] We want the real image, and just the link URL (We'll switch to getting just the URL in the field display configuration.) --- agaric/templates/components/slide.html.twig | 2 +- agaric/templates/paragraph/paragraph--slide.html.twig | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/agaric/templates/components/slide.html.twig b/agaric/templates/components/slide.html.twig index 460670c..e69defe 100644 --- a/agaric/templates/components/slide.html.twig +++ b/agaric/templates/components/slide.html.twig @@ -1,4 +1,4 @@ - +
{{ image }}
diff --git a/agaric/templates/paragraph/paragraph--slide.html.twig b/agaric/templates/paragraph/paragraph--slide.html.twig index c813797..a40247e 100644 --- a/agaric/templates/paragraph/paragraph--slide.html.twig +++ b/agaric/templates/paragraph/paragraph--slide.html.twig @@ -1,12 +1,8 @@ -{% set item_attributes = create_attribute().addClass(item_classes) %} -{% import "@bulma/macros/renderables.html.twig" as renderables %} -{% set link = renderables.merge_attributes(item_attributes, content.field_link, 0) %} {# Include slide component template. #} {% include '@agaric/components/slide.html.twig' with { - classes: classes, - image_url: content.field_image[0]['#markup'], + image: content.field_image, text: content.field_text, - link: link, + url: content.field_link, } only %}