Commit 17abb83f authored by Michael Apfelthaler's avatar Michael Apfelthaler

[TASK] Add Video link to Facts

parent 0a5ec352
columnSuffix: sxkpjzpm
contentColumnType: string(255)
fieldGroup: b6fcef38-d001-4b61-9d45-a1a088df18ba # Channel Types
handle: videoLink
instructions: null
name: 'Video link'
searchable: false
settings:
maxLength: 255
types:
- url
translationKeyFormat: null
translationMethod: none
type: craft\fields\Url
......@@ -29,9 +29,15 @@
{% set image = entry.images.one() %}
<div class="wm-card wm-card--m wm-card--linked" data-wm-card>
<h3 class="wm-card__heading ">
{% if entry.videoLink %}
<a href="{{entry.videoLink}}" target="_blank" class="wm-card__link wm-link--unstyled ">
{{entry.title}}
</a>
{% else %}
<a href="{{entry.url}}" class="wm-card__link wm-link--unstyled ">
{{entry.title}}
</a>
{% endif %}
</h3>
<div class="wm-card__media ">
<img class="wm-image wm-card__image" loading="lazy" src="{{ baseurl }}/{{image.url}}" width="350" height="197" data-src=""
......@@ -41,9 +47,15 @@
<p>{{ entry.teaser}}</p>
</div>
<div>
{% if entry.videoLink %}
<a href="{{entry.videoLink}}" target="_blank" class="wm-em-link">
<span class="wm-em-link__content">{{ "Video ansehen"|t }}</span>
</a>
{% else %}
<a href="{{entry.url}}" class="wm-em-link">
<span class="wm-em-link__content">{{ "Mehr lesen"|t }}</span>
</a>
{% endif %}
</div>
</div>
{% endfor %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment