Skip to content
Snippets Groups Projects

Resolve "Change link of cards to get it from title instead of "link" pattern field"

3 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -9,7 +9,7 @@
{% set attributes = create_attribute() %}
{% set attributes = attributes.addClass(classes).setAttribute('style', "background-image:url('" ~ background | get_img_src ~ "'); background-repeat: no-repeat; background-position: center center; background-size: cover; background-color: " ~ variants.bg_color.color ~ ";") %}
<div onclick="location.href='{{ link|render|get_tag_attribute('a', 'href') }}'" {{ attributes }}>
<div onclick="location.href='{{ title|render|get_tag_attribute('a', 'href') }}'" {{ attributes }}>
{% if background | render %}
<div class="component-media-content__veil"></div>
{% endif %}
Loading