Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-135696

SiteNavigationMenuPortletDisplayTemplateHandler should provide a list of SiteNavigationMenuNavItem

    Details

    • Type: Feature Request
    • Status: Gathering Interest
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Navigation Menus
    • Labels:
      None

      Description

      Currently, the template handler for the site navigation portlet provides a list of NavItem objets:

      https://github.com/liferay/liferay-portal/blob/master/modules/apps/site-navigation/site-navigation-menu-web/src/main/java/com/liferay/site/navigation/menu/web/internal/portlet/template/SiteNavigationMenuPortletDisplayTemplateHandler.java

       

      The problem with NavItem is that is only holds references to the Layout Entity: https://github.com/liferay/liferay-portal/blob/master/portal-kernel/src/com/liferay/portal/kernel/theme/NavItem.java#L190

       

      This was fine with DXP 7.0 when there was not yet the concept of the SiteNavigationMenuItem.  But now we have this concept of SiteNavigationMenuNavItem:

      https://github.com/liferay/liferay-portal/blob/master/modules/apps/site-navigation/site-navigation-taglib/src/main/java/com/liferay/site/navigation/taglib/internal/util/SiteNavigationMenuNavItem.java

      As a consequence, when a developer writes a widget template for the navigation menu portlet, he has only access to information about the Layout if there is one.

      Developers would expect to be able to access information bound to the SiteNavigationMenuItem entity, like for example the id of the SiteNavigationMenuItem or the Expando attributes of that entity.

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            fabian.bouche Fabian Bouché
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package