Commit a8e673c4 authored by Benni Mack's avatar Benni Mack
Browse files

Merge branch 'T3DEMO-238' into 'main'

[TASK] Add fallback to startpage for non-translated pages

See merge request !9
parents b41ed06d 4f6e67e8
Pipeline #10138 passed with stages
in 7 minutes and 11 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>
......
Supports Markdown
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