Commit 4f6e67e8 authored by David Steeb's avatar 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
......@@ -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>
......
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