-
Notifications
You must be signed in to change notification settings - Fork 17
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
New: Introduce Menus as Pages #366
Conversation
I have actually started work on a page header / hero plug-in, will add some layouts we've mapped out on the issue #2703 |
ae17c2c
to
461aeb5
Compare
This works great thanks @oliverfoster. I have some queries/issues if you could take a look please...
|
Verified, need to tweak plp to get it to work properly. |
Aria-levels are off by one for components and group sub items. |
The confusing part about this is that the children of the Page Menu don't run in render order. Ideally:
Whereas because articles live in
Currently:
|
fixes #365
With
config.json:_isPageMenu = true
, menus may have articles, blocks and components, menus are rendered as pages. UseComponentMenuView
andComponentMenuModel
as the basis for menu components, which will inherit the children and therefore completion from the nearest contentobject and render the contentobject's children by default.New
ComponentMenuView
to render child views by defaultComponentMenuModel
to inherit the children and therefore completion, from its immediatecontentobject
ancestorconfig.json:_isPageMenu
to registerPageView
forcourse
andmenu
_type
.AdaptView
so that a default page doesn't render childcontentobject
typesgetAllDescendantModels
to take afilter
argument as part of anoptions
objectTesting
config.json:_isPageMenu = true
course.json:_pageLevelProgress._showAtCourseLevel = true
_parentId = "course"
, along with a block and a component, which should have_component = "menuBox"
Or use the following zip, extract and run
npm install
then build as usual:test.zip
Todo
_isPageMenu = true
, default to_isPageMenu
when no menu is selected @taylortom