Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
demo.typo3.org
demo.typo3.org TYPO3 Installation
Commits
4f6e67e8
Commit
4f6e67e8
authored
Nov 30, 2020
by
David Steeb
Browse files
[TASK] Add fallback to startpage for non-translated pages
Related: T3DEMO-238
parent
04e18905
Pipeline
#10110
passed with stage
in 2 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/extensions/site_t3demo/Resources/Private/Pages/Partials/Header.html
View file @
4f6e67e8
...
...
@@ -79,7 +79,18 @@
<ul
class=
"b_langswitch"
>
<f:for
each=
"{languageMenu}"
as=
"item"
>
<li
class=
"b_langswitch__item"
>
<a
href=
"{item.link}"
class=
"b_langswitch__link {f:if(condition: item.active, then: 'b_langswitch__link--active')}"
>
{item.navigationTitle}
</a>
<f:if
condition=
"{item.available}"
>
<f:then>
<a
href=
"{item.link}"
class=
"b_langswitch__link {f:if(condition: item.active, then: 'b_langswitch__link--active')}"
>
{item.navigationTitle}
</a>
</f:then>
<f:else>
<f:link.typolink
parameter=
"{startpage.0.data.uid}"
class=
"b_langswitch__link {f:if(condition: item.active, then: 'b_langswitch__link--active')}"
language=
"{item.languageId}"
>
{item.navigationTitle}
</f:link.typolink>
</f:else>
</f:if>
</li>
</f:for>
</ul>
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment