Ugly in so many ways, but it works
This commit is contained in:
parent
3777ffe098
commit
61210c0804
1 changed files with 3 additions and 2 deletions
|
@ -13,16 +13,17 @@
|
||||||
|
|
||||||
{{ title_suffix.contextual_links }}
|
{{ title_suffix.contextual_links }}
|
||||||
|
|
||||||
|
{#
|
||||||
{% set route_options = [] %}
|
{% set route_options = [] %}
|
||||||
{% set route_options['node'] = node %}
|
{% set route_options['node'] = node %}
|
||||||
{% set link_path = path('entity.node.canonical', route_options) %}
|
{% set link_path = path('entity.node.canonical', route_options) %}
|
||||||
{{ url }}
|
{{ url }}
|
||||||
{{ node.id }}
|
#}
|
||||||
{% set image = ds_content.field_image|render %}
|
{% set image = ds_content.field_image|render %}
|
||||||
{% if image %}
|
{% if image %}
|
||||||
{{ image }}
|
{{ image }}
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="/test" class="background-replacement-for-no-image image"></a>
|
<a href="/node/{{ node.id }}" class="background-replacement-for-no-image image"></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ ds_content|without('field_image') }}
|
{{ ds_content|without('field_image') }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue