Details

    • Sprint:
      [2.4] - Sprint 4
    • Story Points:
      1

      Description

      Update the order of navbar items to (from left to right):

      eZ Platform Enterprise:
      Content - Page - Forms - Admin

      eZ Platform Enterprise Demo:
      Content - Page - Forms - Netgen Tags - Admin

      Nice to have:
      Rename Netgen Tags into Tags.

        Issue Links

          Activity

          Hide
          Sylvain Guittard added a comment - - edited

          ping Piotr Nalepa Dariusz Szut: We should also think about extensibility of this implementation. How will developers define the order of additional interfaces (such as mailchimp, eCommerce...)?

          Show
          Sylvain Guittard added a comment - - edited ping Piotr Nalepa Dariusz Szut : We should also think about extensibility of this implementation. How will developers define the order of additional interfaces (such as mailchimp, eCommerce...)?
          Hide
          Dariusz Szut added a comment -

          Sylvain Guittard As far as I know this is already extensible, can be done with the symfony event listener. Summon Maciej Kobus for more input.

          Show
          Dariusz Szut added a comment - Sylvain Guittard As far as I know this is already extensible, can be done with the symfony event listener. Summon Maciej Kobus for more input.
          Hide
          Sylvain Guittard added a comment -

          Maciej Kobus: what is your input on this story?

          Show
          Sylvain Guittard added a comment - Maciej Kobus : what is your input on this story?
          Hide
          Maciej Kobus added a comment -

          As Dariusz Szut said it can be easily done with Event Listeners. We expose Events for all menus (top, sidebars, Page Builder etc.) which can be reordered:

              /**
               * @param \EzSystems\EzPlatformAdminUi\Menu\Event\ConfigureMenuEvent $event
               *
               * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException
               * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException
               */
              public function onMenuConfigure(ConfigureMenuEvent $event)
              {
                  $root = $event->getMenu();
           
                  $root->reorderChildren([
                      \EzSystems\EzPlatformAdminUi\Menu\MainMenuBuilder::ITEM_CONTENT,
                      \EzSystems\EzPlatformAdminUi\Menu\MainMenuBuilder::ITEM_ADMIN,
                     // other menu items...
                  ]);        
              }
          

          Show
          Maciej Kobus added a comment - As Dariusz Szut said it can be easily done with Event Listeners. We expose Events for all menus (top, sidebars, Page Builder etc.) which can be reordered: /** * @param \EzSystems\EzPlatformAdminUi\Menu\Event\ConfigureMenuEvent $event * * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException */ public function onMenuConfigure(ConfigureMenuEvent $event ) { $root = $event ->getMenu();   $root ->reorderChildren([ \EzSystems\EzPlatformAdminUi\Menu\MainMenuBuilder::ITEM_CONTENT, \EzSystems\EzPlatformAdminUi\Menu\MainMenuBuilder::ITEM_ADMIN, // other menu items... ]); }
          Show
          Dawid Parafiński added a comment - https://github.com/ezsystems/ezplatform-admin-ui/pull/700 https://github.com/ezsystems/ezplatform-page-builder/pull/251 https://github.com/ezsystems/ezplatform-form-builder/pull/105
          Show
          Katarzyna Zawada added a comment - Merged: - https://github.com/ezsystems/ezplatform-admin-ui/commit/35a3f3888e201b2dbf45f5751e3c92c3c9948f07 - https://github.com/ezsystems/ezplatform-page-builder/commit/effca6d570c7a3d0a47a228b2e8558ae7f508cb0 - https://github.com/ezsystems/ezplatform-form-builder/commit/9cd485079b5089a5b8e3fdf3765daf811fe9f84a

            People

            • Assignee:
              Unassigned
              Reporter:
              Inaki Juaniz-Velilla
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Agile