Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

was "classHasSubpages" removed from v:menu on version 7.* #1903

Open
HorstBaumann opened this issue Mar 28, 2024 · 1 comment
Open

was "classHasSubpages" removed from v:menu on version 7.* #1903

HorstBaumann opened this issue Mar 28, 2024 · 1 comment

Comments

@HorstBaumann
Copy link

I always used classHasSubpages on v:menu to generate a class for the parent page, if a subpages exist.

now in vhs 7.0.* I get this Exception error:

Undeclared arguments passed to ViewHelper FluidTYPO3\Vhs\ViewHelpers\MenuViewHelper: classHasSubpages

typo3. 12.4.13 (composer
vhs 7.0.2

my menu setup:
<v:menu
pageUid="1"
excludePages=""
tagName="ul"
tagNameChildren="li"
levels="4"
expandAll="1"
classFirst="first"
classLast="last"
classActive="active"
classCurrent="current"
classHasSubpages="sub"
showHiddenInMenu="0"
titleFields="subtitle,nav_title,title"
includeSpacers="0"
as="root"
forceAbsoluteUrl="0">


    .......

    full error prompt:
    Undeclared arguments passed to ViewHelper FluidTYPO3\Vhs\ViewHelpers\MenuViewHelper: classHasSubpages. Valid arguments are: additionalAttributes, data, aria, class, dir, id, lang, style, title, accesskey, tabindex, onclick, forceClosingTag, hideIfEmpty, contenteditable, contextmenu, draggable, dropzone, translate, spellcheck, hidden, showAccessProtected, classAccessProtected, classAccessGranted, useShortcutUid, useShortcutTarget, useShortcutData, tagName, tagNameChildren, entryLevel, levels, expandAll, classFirst, classLast, classActive, classCurrent, substElementUid, showHiddenInMenu, showCurrent, linkCurrent, linkActive, titleFields, includeAnchorTitle, includeSpacers, deferred, as, rootLineAs, excludePages, forceAbsoluteUrl, doktypes, divider, pageUid, in file .......

    All the other attributes from
    https://docs.typo3.org/p/fluidtypo3/vhs/7.0/en-us/ViewHelpers/Page/Menu.html?highlight=classhassubpages
    are shown - but where has classHasSubpages gone ?

@max951
Copy link

max951 commented May 3, 2024

Same here.
The attribute no longer exists in the documentation .
But I don't know how to migrate this.
Could anybody give me a hint please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants