Problem/Motivation

The navigation prototype is an HTML mockup where the menu links have been hardcoded. In order to progress further and enhance the functionality of our prototype, we need a plan to transition from using hardcoded links to integrating Drupal menus. This adjustment will help us analyze the usage of our existing menus and strategize the creation of new ones.

Our current objective is to integrate four new menus, each with its unique set of requirements and potential modifications:

  1. Administration Menu - To refine this menu, links such as 'Content' and 'Help' might need to be removed.
  2. Rename Shortcuts to Bookmarks - The 'Shortcuts' menu is intended to be rebranded as 'Bookmarks'. We need to discuss the new name's alignment with the system's objectives to ensure consistency in terminology.
  3. User Account Menu - We need to determine whether to include a thumbnail of the user's image in the MVP.
  4. New Content Creation Menu - Should this menu be integrated within the existing navigation module, or would it be more effective as a separate entity? Additionally, we need to decide which items will be included in the Create menu.

Proposed resolution

Move from the hard-coded HTML prototype

MVP - Move to menus

Menus - customization beyond the MVP

Comments

baluv3 created an issue. See original summary.

lauriii’s picture

There's some work in progress in #3383896: Generate menu items using plugins.

ckrina’s picture

Just added #3387957: Define logo origin on the Toolbar since we'll likely have to define this soon.

mherchel’s picture

Just merged #3383896: Generate menu items using plugins.

Had discussions that fit into this issue with @deviantintegral and @tedbow at https://drupal.slack.com/archives/C7AB68LJV/p1695052420501349.

Both of them are confused on where the data is coming from.

From @tedbow

I am little confused about the purpose of this issue vs using the menu system. It sort of uses the menu system, as in NavigationAdmin uses a menu but NavigationUser does not. Eventually will these all use menus? If so couldn’t you have just as much control over the markup by just having specific templates for these menu rather than just introducing the new NavigationSection concept
does 'base hook' => 'menu', mean that all the theme process stuff will still apply to these navigation sections also? (edited)

from @deviantintegral

I was also a little confused about this, but assumed I'd just missed prior context. The big thing I see is that I could see modules adding items to navigation sections that aren't menus, but some other UI widget. Like I think environment indicator is a good example of that? But I also think until we start wanting to create releases there isn't much harm in merging the MR, given that it's less hardcoded than the current code.

ckrina’s picture

Issue summary: View changes

Updating the plan with an initial list of issues

ckrina’s picture

Issue summary: View changes
ckrina’s picture

Update the roadmap and the work done so far.

ckrina’s picture

Issue summary: View changes

Moved an issue to post MVP.

ckrina credited tedbow.

ckrina’s picture

Status: Active » Fixed

Closing the plan and leaving #3412116: Add contextual link for the whole Navigation bar to link to the Navigation Admin UI as its stand-alone issue, because we're already using menus to generate the links. Since #3412116: Add contextual link for the whole Navigation bar to link to the Navigation Admin UI will need its own discussions more focused on UX, I'm detaching it from the plan itself.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.