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
db537e4c
Commit
db537e4c
authored
Jan 18, 2024
by
Michael Apfelthaler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TASK] Add deactivation for topics
parent
ef6f8584
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
deactivateLinking--e3f68a02-fa20-4a1b-b5dd-1b22cde27610.yaml
...ctivateLinking--e3f68a02-fa20-4a1b-b5dd-1b22cde27610.yaml
+23
-0
index.twig
templates/themen/index.twig
+6
-1
No files found.
config/project/fields/deactivateLinking--e3f68a02-fa20-4a1b-b5dd-1b22cde27610.yaml
0 → 100644
View file @
db537e4c
columnSuffix
:
ddwlsptq
contentColumnType
:
string
fieldGroup
:
b6fcef38-d001-4b61-9d45-a1a088df18ba
# Channel Types
handle
:
deactivateLinking
instructions
:
null
name
:
'
Deactivate
Linking'
searchable
:
false
settings
:
options
:
-
__assoc__
:
-
-
label
-
'
Yes'
-
-
value
-
'
yes'
-
-
default
-
'
'
translationKeyFormat
:
null
translationMethod
:
none
type
:
craft\fields\Checkboxes
templates/themen/index.twig
View file @
db537e4c
...
@@ -4,11 +4,16 @@
...
@@ -4,11 +4,16 @@
<div
class=
"news mt16 maxWidthLimit"
>
<div
class=
"news mt16 maxWidthLimit"
>
{%
for
newsElement
in
craft.entries.section
(
'themen'
)
.
all
()
%}
{%
for
newsElement
in
craft.entries.section
(
'themen'
)
.
all
()
%}
{%
set
image
=
newsElement.image.one
()
%}
{%
set
image
=
newsElement.image.one
()
%}
<div
class=
"wm-card wm-card--m
wm-card--linked
"
data-wm-card
>
<div
class=
"wm-card wm-card--m"
data-wm-card
>
<h3
class=
"wm-card__heading "
>
<h3
class=
"wm-card__heading "
>
{%
if
newsElement.deactivateLinking.contains
(
'yes'
)
%}
{{
newsElement.title
}}
{%
else
%}
<a
href=
"
{{
newsElement.url
}}
"
class=
"wm-card__link wm-link--unstyled "
>
<a
href=
"
{{
newsElement.url
}}
"
class=
"wm-card__link wm-link--unstyled "
>
{{
newsElement.title
}}
{{
newsElement.title
}}
</a>
</a>
{%
endif
%}
</h3>
</h3>
<div
class=
"wm-card__media "
>
<div
class=
"wm-card__media "
>
{%
do
image.setTransform
(
{
height
:
300
}
)
%}
{%
do
image.setTransform
(
{
height
:
300
}
)
%}
...
...
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