Skip to content

Releases: enonic/lib-menu

v4.2.1

14 Apr 12:13
1df9abe

Choose a tag to compare

Changelog

There have been no changes to the project after v4.2.0.

v4.2.0

18 Aug 09:03
3d6935f

Choose a tag to compare

Changelog

Improvements

  • Create test cases (#41).

v4.1.1

08 Apr 08:51
e3af3da

Choose a tag to compare

Changelog

There have been no changes to the project after v4.1.0.

Fixed issue with inPath calculation by @vi-h

v4.1.0

17 Mar 12:01
2256602

Choose a tag to compare

Changelog

Improvements

  • Support passing in implicit contentId (#57).

v4.0.2

20 Jan 09:26
7472c79

Choose a tag to compare

Changelog

Improvements

  • Don't rely on content being present in context (#60).

Version 4.0.1

17 Dec 09:04

Choose a tag to compare

bugfix: getMenuTree crashed with empty params

Version 4

04 Dec 12:43
a5bc091

Choose a tag to compare

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
  • OptionariaLabel added to the menu, defaults to "menu"
  • Other options passed down to getSubMenus (same as previous version)

getSubMenus:

  • New options added
  • Option returnContent now adds the full content to the return structure
  • Option query now 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

09 Jun 07:43
61f1581

Choose a tag to compare

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

01 Feb 09:38

Choose a tag to compare

Manual sorting does not work (#22)

Added parent child-order sorting to query

1.3.3

07 Dec 13:32

Choose a tag to compare

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.