-
-
Notifications
You must be signed in to change notification settings - Fork 194
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 faster navigation with dropdown menus for Plone #2516
Comments
@plone/framework-team |
Where should the code go?
|
the tile must live out of core for obvious reasons. |
@hvelarde no, it can be included with a |
@agitator I think viewlet & tile in p.a.layout, and JS in mockup, if it is a pattern |
"It's time we have dropdown menus in Plone by default" small, but nice typo: |
fixed the cashing ;-) |
+1 for i can't say anything about the tile, as i'm not really into the tile/mosaic topic |
after discussion with @jensens I'll do the base navigation markup as a content provider and put the tile into plone.app.standardtiles |
@agitator in following up to the chat we had earlier, some links that might help:
|
Please consider compatibility with other navigations like collective.editablemenu or megamenu |
@yurj please explain, imho those add ons follow a totally different approach to build a navigation From previous discussion, what I think a mega menu should be https://community.plone.org/t/site-map-and-mega-menu-generation-is-slow/4662/17?u=agitator |
@agitator your PLIP has been approved by the Framework team. |
😎 ... work will continue at the ploneconf sprint |
@thet could you look into
|
@agitator I try to get this done this week. |
@thet i also added navigation_depth |
I'm incredibly busy currently and I hope for some unexpected productivity boosts to get anything done this week. So I don't make any promises. |
@svx @polyester is there documentation for the navigation somewhere to add this feature? |
@agitator it depends on what the audience is for the documentation. I'm guessing here it would be for site administrators with perhaps a few hints for themers. In that case, I would put create a new rst file under https://github.com/plone/documentation/tree/5.1/adapt-and-extend/config If there's considerable documentation for themers because it's very complicated to theme, it might warrant an own section under https://github.com/plone/documentation/tree/5.1/adapt-and-extend/theming, but if it's fairly minimal and basically just says "here's the classes, go write css if you want" it is probably easier to keep everything together. Documentation for developers on how to actually extend/improve this dropdown-navigation should live apart from that; if this is not an own product (as I gather it's going into several other products), I would say it's easiest to create an rst file under https://github.com/plone/documentation/tree/5.1/develop/plone/functionality, that seems the most logical place |
@polyester thanx for the pointers! I think extending the config docs should be enough. |
@agitator Is there a public Demo site running somewhere? If not I should build a local coredev 5.2 with this plip activated to try the new navigation? |
This PLIP was completed reviewed and merged in the Alpine city sprint. |
Branch: refs/heads/master Date: 2019-02-06T20:23:16+01:00 Author: ale-rt (ale-rt) <[email protected]> Commit: plone/plone.app.layout@b13a0fd Remove a property that was defined but not used Refs. plone/Products.CMFPlone#2516 Files changed: M plone/app/layout/navigation/navtree.py Repository: plone.app.layout Branch: refs/heads/master Date: 2019-02-07T12:15:03+01:00 Author: Gil Forcada Codinachs (gforcada) <[email protected]> Commit: plone/plone.app.layout@64dc4e8 Merge pull request #178 from plone/2516-fixup Remove a property that was defined but not used Files changed: M plone/app/layout/navigation/navtree.py
Branch: refs/heads/master Date: 2019-02-09T16:11:46+01:00 Author: ale-rt (ale-rt) <[email protected]> Commit: plone/plone.app.layout@bcc4fb5 Improve the new navigation and add test coverage Refs. plone/Products.CMFPlone#2516 Files changed: A news/181.fixed A plone/app/layout/navigation/tests/test_navtree_provider.py M plone/app/layout/navigation/navtree.py M plone/app/layout/testing.py Repository: plone.app.layout Branch: refs/heads/master Date: 2019-02-18T18:28:28+01:00 Author: ale-rt (ale-rt) <[email protected]> Commit: plone/plone.app.layout@544b37b Merge remote-tracking branch 'origin/master' into 2516-fixup Files changed: M CHANGES.rst M setup.py D news/176.bugfix D news/180.bugfix D news/2516.feature Repository: plone.app.layout Branch: refs/heads/master Date: 2019-02-18T18:52:12+01:00 Author: ale-rt (ale-rt) <[email protected]> Commit: plone/plone.app.layout@ea2cacc Old tab could also have a name Files changed: M plone/app/layout/navigation/navtree.py Repository: plone.app.layout Branch: refs/heads/master Date: 2019-02-18T23:53:10+01:00 Author: ale-rt (ale-rt) <[email protected]> Commit: plone/plone.app.layout@c95e85e Update and expand tests Files changed: M plone/app/layout/viewlets/tests/test_common.py Repository: plone.app.layout Branch: refs/heads/master Date: 2019-02-19T09:32:10+01:00 Author: Jens W. Klein (jensens) <[email protected]> Commit: plone/plone.app.layout@a1993c9 Merge pull request #182 from plone/2516-fixup Improve the new navigation and add test coverage Files changed: A news/181.fixed A plone/app/layout/navigation/tests/test_navtree_provider.py M plone/app/layout/navigation/navtree.py M plone/app/layout/testing.py M plone/app/layout/viewlets/tests/test_common.py
Remove the ``plone.navtree`` content provider that was introduced in the context of the Navigation PLIP (plone/Products.CMFPlone#2516) Fixes #188
Remove the ``plone.navtree`` content provider that was introduced in the context of the Navigation PLIP (plone/Products.CMFPlone#2516) The logic has been moved to the viewlet that was invoking it. Fixes #188
Responsible Persons
Proposer: Peter Holzer (@agitator)
Seconder: Johannes Raggam (@thet)
Abstract
Plone sites typically have a lot of content, the global navigation only supports the main folders of the site for navigation. It's time we have dropdown menus in Plone by default.
Motivation
webcouturier.dropdownmenu is used by many plonistas to solve this problem - not without issues.
Assumptions
Proposal & Implementation
While I was in process of updating the styles for mobile first, Johannes found out about the performance issues while profiling a client site. We then decided to start a new implementation of a dropdown navigation for Plone.
The new implementation features:
Todo:
Deliverables
Existing code and proof of concept in https://github.com/collective/collective.navigation (still needs polishing)
Risks
Participants
https://github.com/plone/buildout.coredev/blob/5.2/plips/plip-2516-navigation.cfg
Tasks necessary for the plip:
Caching(has no impact)Nice to have (could be finished later):
The text was updated successfully, but these errors were encountered: