Commit 14681e04 authored by Matthias Stegmann's avatar Matthias Stegmann
Browse files

Merge branch 'T3DEMO-330' into 'main'

[TASK] Only show the login button if login page is available

See merge request !66
parents 384da53d ee5e2a11
Pipeline #12995 passed with stages
in 1 minute and 54 seconds
......@@ -105,17 +105,24 @@
<f:translate key="login.logout" extensionName="site_t3demo" />
</f:link.page>
</f:then>
<f:else>
<f:else if="{f:uri.typolink(parameter: settings.login)}">
<f:link.page pageUid="{settings.login}" additionalParams="{logintype: 'logout'}" class="b_button b_button--secondary umami--click--button-frontend-logout">
<f:translate key="login.logout" extensionName="site_t3demo" />
</f:link.page>
</f:else>
<f:else>
<f:link.page pageUid="{settings.startpage}" additionalParams="{logintype: 'logout'}" class="b_button b_button--secondary umami--click--button-frontend-logout">
<f:translate key="login.logout" extensionName="site_t3demo" />
</f:link.page>
</f:else>
</f:if>
</f:then>
<f:else>
<f:link.typolink parameter="{settings.login}" class="b_button umami--click--button-frontend-login">
<f:translate key="login.login" extensionName="site_t3demo" />
</f:link.typolink>
<f:if condition="{f:uri.typolink(parameter: settings.login)}">
<f:link.typolink parameter="{settings.login}" class="b_button umami--click--button-frontend-login">
<f:translate key="login.login" extensionName="site_t3demo" />
</f:link.typolink>
</f:if>
</f:else>
</f:if>
</div>
......
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