Releases: enonic/lib-menu
Releases · enonic/lib-menu
v4.2.1
v4.2.0
v4.1.1
v4.1.0
v4.0.2
Version 4.0.1
bugfix: getMenuTree crashed with empty params
Version 4
getBreadcrumbMenu:
- Changed navigationAriaLabel to ariaLabel
- option AriaLabel not defaults to "breadcrumbs"
- No longer returns breadscrumbs on missing content
getMenuTree:
- Return type changed from array to object
- Option
ariaLabeladded to the menu, defaults to "menu" - Other options passed down to getSubMenus (same as previous version)
getSubMenus:
- New options added
- Option
returnContentnow adds the full content to the return structure - Option
querynow lets you add a custom query to futher limit the searched elements - No longer returns a menu on missing content (error handlers limit what can go wrong)
- Removed displayName from the returned menuItems replaced by title
Thymeleaf fragments:
Require a passed argument now.
3.1.0
Feature upgrade, refactor
getBreadcrumbMenu:
- no required parameters
- new return property url
- new return property title
getSubMenus:
- no required paramaters
- return property title (Combination of displayname and menuName)
- new return property url (no more thymleaf portal.pageUrl necessary!)
- Added the parameter: param": "urlType" values: "absolute" or "server" (Absolute url or relative url)
- Refactored, small speed upgrade
getMenuTree:
- Params changed to match getSubMenus
Fix bug with ordering menuItems
Manual sorting does not work (#22) Added parent child-order sorting to query
1.3.3
Built in mixin menu-item was removed in development of 1.2.0 since most users shipped a copy of their own with their app (for customization possibilities). This however broke some sites using that mixin but never upgrading the lib dependency to lib-menu. So, now it's back again for those who want it. The ones shipping their own mixin from their app will not see any difference as app mixins will overwrite lib mixins.