Mobile navigation and a basic infrastructure for mobile buttons on a Plone site.
With ftw.mobile you can implement mobile buttons, which show a list of options when clicked. The package depends on ftw.theming, which provides the basic styles.
It also provides a mobile navigation, which is also displayed as a mobile button, but behaves differently.
Add the package to your buildout configuration:
[instance] eggs += ... ftw.mobile
Warning: This package installs ftw.gopip, which replaces the getObjPositionInParent catalog index with a FieldIndex. This is because ftw.mobile needs to do large catalog queries sorted by getObjPositionInParent, which is too slow in standard Plone. See the ftw.gopip readme for further details.
Two buttons are registered by default.
The buttons are rendered in a viewlet, which is visible at a certain viewport size.
Fork this repo
Clone your fork
Shell: ln -s development.cfg buidlout.cfg
Shell: python boostrap.py
Run bin/test to test your changes.
Or start an instance by running bin/instance fg.
Continuous integration: https://jenkins.4teamwork.ch/search?q=ftw.mobile
This package is copyright by 4teamwork.
ftw.mobile is licensed under GNU General Public License, version 2.
Remove Plone 5’s JS dependencie on plone bundle. [mathias.leimgruber]
Fix closing nav with ESC with no jQuery UI [Nachtalb]
Emit “mobilenav:body:wrapped” after the body has been wrapped [Nachtalb]
Add willopen and willclose nav events. [mathias.leimgruber]
Fix JS error by not init nav menu if html structure is missing. [mathias.leimgruber]
Fix Plone 5’s toolbar alignment. [djowett-ftw]
Place mobile buttons next to text in default layout. [busykoala]
Allow non-ascii characters in navigation buttons [Nachtalb]
Add support for Plone 5.1. [mbaechtold]
Use a better selector for the script detach part (to catch only actual js). [mathias.leimgruber]
Fix JS error in arrowScrollController if there are no topLevelTabs. [mathias.leimgruber]
Use portal title on root_node. [mathias.leimgruber]
Allow option for ignoring exluded content.
Allow opening top level tabs directly. [Kevin Bieri]
Allow showing leafnote siblings. [Kevin Bieri]
Fix getting children if the root is not the portal_root. [mathias.leimgruber]
Make compatible with ftw.theming 2.0.0. [Kevin Bieri]
Fix scroll behavior of top level tabs in mobile navigation. [Kevin Bieri]
Fix: ftw.testbrowser compatibility. [mathias.leimgruber]
Set focus on active element on the tab navs [Kevin Bieri]
Make possible to close the navigation using Escape key [Kevin Bieri]
Skip links in the mobile menu when it’s closed [Kevin Bieri]
Fix icon size for IE11 in mobile navigation [Kevin Bieri]
Fix offset of overlay in IE11 and Edge [Kevin Bieri]
Introduce swipe gesture for closing the mobile menu. [Kevin Bieri]
Fix mobile menu transition on IE>=9. [Kevin Bieri]
Set the children_loaded flag on prepended nodes too. [mathias.leimgruber]
Append current context path to prepend_unauthorized_parents, because the current obj may be excluded from nav. [mathias.leimgruber]
Do not detach script tags of type x-handlebars-template. jQuery is not able to re-attach them. [mathias.leimgruber]
Close the mobile-navigation when the screen size changes from mobile to desktop while the navigation is open. [raphael-s]
Actually mark external links with a “external-link” class in navtree. [mathias.leimgruber]
Toggle aria-hidden attribute on mobile navigation elements [raphael-s]
Hide current path on root when showing one level. [jone]
Fix invalid markup in template, causing broken markup with chameleon. [jone]
Mobile buttons: add settings “show_tabs” and “show_two_levels_on_root”. [jone]
Pass the url of the navigation root to the handlebars template. [mbaechtold]
Use helper text for screenreaders also as title attribute on the link itself. [mathias.leimgruber]
Implement plone translations for handlebars templates. [mathias.leimgruber]
Do not render handlebars templates with PageTemplate engine. [mathias.leimgruber]
Add “navActiveNode” class to the node which is currently loaded. [jone]
Add separate “current node” item in addition to “parent node”. [jone]
Leaf nodes: open parent navigation. [jone]
Install ftw.gopip for better performance. [jone]
Mark leaf nodes and remove link to children. [jone]
Add support for plone.app.multilingual [Kevin Bieri]
Open the target behind a top level node not having children after having clicked it. [jone, mbaechtold]
Scroll back to the top level node after having clicked it. [jone]
Fix crash when parent is excluded from navigation by also including parents when excluded from navigation. [jone]
Make it possible to close the menu when clicking somewhere outside of the menu [Kevin Bieri]
Fix hightlighting more than one top level tab [Kevin]
Translate user menu actions. [jone]
Fix issues when the user has no permission to view a parent. [jone]
Pevent scrolling when navigation is open [Kevin Bieri]
Use zindex system from ftw.theming to fix dropdown menues [Kevin Bieri]
Introduce transitionend marker on root element. [Kevin Bieri]
Fix offcanvas navigation on iOS devices. Rework revealing offcanvas navigation using two additional wrappers. Refactor styling. [Kevin Bieri]
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.