Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_news
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_news
Commits
7ae25569
Commit
7ae25569
authored
2 years ago
by
Stefan Galinski
Browse files
Options
Downloads
Patches
Plain Diff
[BUGFIX] Fix broken layout for related news
parent
8f366710
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!44
[BUGFIX] Fix bugs with fetching the related news
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Resources/Private/Templates/SingleView/SingleView.html
+5
-8
5 additions, 8 deletions
Resources/Private/Templates/SingleView/SingleView.html
with
5 additions
and
8 deletions
Resources/Private/Templates/SingleView/SingleView.html
+
5
−
8
View file @
7ae25569
...
...
@@ -199,11 +199,11 @@
<f:if
condition=
"{newsMetaData.news.relatedNews}"
>
<f:then>
<div
class=
"tx-sgnews-single-related"
>
<div
class=
"tx-sgnews-single-related
tx-sgnews-categories
"
>
<h3>
<f:translate
key=
"frontend.singleview.relatedArticles"
/>
</h3>
<ul
class=
"tx-sgnews-list tx-sgnews-overview"
>
<ul
class=
"tx-sgnews-list tx-sgnews-overview
row
"
>
<sg:related
news=
"{newsMetaData.news}"
relatedNews=
"{newsMetaData.news.relatedNews}"
as=
"relatedNewsEntry"
>
...
...
@@ -221,16 +221,13 @@
</f:then>
<f:else>
<f:if
condition=
"{settings.enableAutomaticRelatedNews}"
>
<sg:related
news=
"{newsMetaData.news}"
iteration=
"iterator"
limit=
"5"
as=
"relatedNewsEntry"
>
<sg:related
news=
"{newsMetaData.news}"
iteration=
"iterator"
limit=
"3"
as=
"relatedNewsEntry"
>
<f:if
condition=
"{iterator.isFirst}"
>
<div
class=
"tx-sgnews-single-related"
>
<div
class=
"tx-sgnews-single-related
tx-sgnews-categories
"
>
<h3>
<f:translate
key=
"frontend.singleview.relatedArticles"
/>
</h3>
<ul
class=
"tx-sgnews-list tx-sgnews-overview"
>
<ul
class=
"tx-sgnews-list tx-sgnews-overview
row
"
>
</f:if>
<li
class=
"col-md-4 col-sm-6 col-xs-12"
>
<f:render
partial=
"Teaser"
arguments=
"{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment