Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bdk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hebotek
bdk
Commits
17abb83f
Commit
17abb83f
authored
Jan 22, 2024
by
Michael Apfelthaler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TASK] Add Video link to Facts
parent
0a5ec352
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
videoLink--2e7ca1ae-5a2f-4f08-97a5-51b45ec3e855.yaml
...elds/videoLink--2e7ca1ae-5a2f-4f08-97a5-51b45ec3e855.yaml
+14
-0
index.twig
templates/facts/index.twig
+12
-0
No files found.
config/project/fields/videoLink--2e7ca1ae-5a2f-4f08-97a5-51b45ec3e855.yaml
0 → 100644
View file @
17abb83f
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
templates/facts/index.twig
View file @
17abb83f
...
...
@@ -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
%}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment