Project

General

Profile

Actions

Bug #81229

closed

fluid_styled_content fluid partial menu type2 (sitemap) entryLevel does not work

Added by Wiebke Lauke over 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid Styled Content
Target version:
-
Start date:
2017-05-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Actions #1

Updated by Riccardo De Contardi over 7 years ago

  • Category set to Fluid Styled Content
Actions #2

Updated by Thorsten Griebenow over 7 years ago

I have the same problem in TYPO3 v8

Actions #3

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"

Actions #4

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.

Actions #5

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.

Actions #6

Updated by Thorsten Griebenow over 7 years ago

Ah - now I got it. Thanks for the advice, I completly missinterpreted it.... !

Actions #7

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)

Actions

Also available in: Atom PDF