Bug #81229
closedfluid_styled_content fluid partial menu type2 (sitemap) entryLevel does not work
0%
Description
Hi there,
I'm trying to overwrite the fluid template fluidcontent/Partials/Type-2.html with entryLevel 1 instead of 0. I want to start my sitemap of the page with menu level 1, not with root.
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:ce="http://typo3.org/ns/TYPO3/CMS/FluidStyledContent/ViewHelpers" data-namespace-typo3-fluid="true">
<ce:menu.list entryLevel="1" as="pages" levelAs="level">
<f:if condition="{pages}">
<ul class="ce-menu ce-menu-2">
<f:for each="{pages}" as="page">
<li>
<f:link.page pageUid="{page.uid}">
<f:if condition="{page.nav_title}">
<f:then>
{page.nav_title}
</f:then>
<f:else>
{page.title}
</f:else>
</f:if>
</f:link.page>
<f:render partial="Menu/Directory" arguments="{pageUids: {0: page.uid}}" />
</li>
</f:for>
</ul>
</f:if>
</ce:menu.list>
</html>
But that doesn't work. Nothing is rendered in frontend. Is that a bug or not correctly used?
Thanks in advance!
TYPO3 7.6.18
Updated by Riccardo De Contardi over 7 years ago
- Category set to Fluid Styled Content
Updated by Thorsten Griebenow over 7 years ago
I have the same problem in TYPO3 v8
Updated by Jo Hasenau over 7 years ago
entryLevel usually does not mark a starting page for the menu but the page tree level from which the menu will be visible. What you might want to use is the menu type "Directory"
Updated by Thorsten Griebenow over 7 years ago
I have a lib collecting all the pages for menues to be used on the website. I use it for the standard page menu and it works fine. So this comes up with
lib.navitems = HMENU
lib.navitems {
entryLevel = 0
...
}
In a certain be layout I want to integrate a lib.thirdMenuLevel deriving its configuration from the lib.navitems - with one difference:
lib.thirdLevelMenu < lib.navitems
lib.thirdLevelMenu.entryLevel = 2
But with any different level set there'll be no menu at all.
Updated by Jo Hasenau over 7 years ago
See my former answer: entryLevel does not show a menu OF a certain level of pages but will start to be visible from that level on. So when you are on a page with a lower level there will be no output.
Updated by Thorsten Griebenow over 7 years ago
Ah - now I got it. Thanks for the advice, I completly missinterpreted it.... !
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from New to Closed
I close this issue; for clarity, the description of entryLevel
has been updated on the TSREF documentation (see https://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/Hmenu/Index.html)