Render submenu with standard button colors

This commit is contained in:
Björn Fromme
2022-03-08 12:44:07 +01:00
parent 0833151956
commit 211d126db4
3 changed files with 35 additions and 13 deletions
@@ -1,8 +1,7 @@
<html data-namespace-typo3-fluid="true" lang="en"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"
xmlns:ep="http://typo3.org/ns/EP/EpTheme/ViewHelpers"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers">
xmlns:ep="http://typo3.org/ns/EP/EpTheme/ViewHelpers">
<f:layout name="Default"/>
@@ -73,16 +72,18 @@
</p>
</f:if>
<ul class="list-none p-0 m-0 space-y-2">
<v:menu pageUid="{settings.conceptPageUid}" as="menu">
<f:for each="{menu}" as="page">
<li>
<f:link.typolink parameter="{page.uid}"
class="button w-full">
{page.title}
</f:link.typolink>
</li>
</f:for>
</v:menu>
<f:for each="{pages}" as="page">
<f:if condition="{page.hidden}">
<f:else>
<li>
<f:link.typolink parameter="{page.uid}"
class="button button--light{f:if(condition: '{data.pid} == {page.uid}', then: ' button--active')} w-full">
{page.title}
</f:link.typolink>
</li>
</f:else>
</f:if>
</f:for>
</ul>
</div>
</div>