Problem/Motivation
The navigation prototype is a HTML mockup where the menu links have been hard-coded. In order to progress further and enhance the functionality of our prototype we need to get it closed to what regular menu items do. As a child of #3381754: [PLAN] Use Menus to generate the links in the sidebar, this is the first step to move towards that direction.
Proposed resolution
Use a new Navigation Section plugin type where each "section" (ex. Content, Admin, Bookmarks), responsible for generating it's menu items. Bookmarks and admin menu items are provided by a Drupal service. Otherwise, items from the other sections are hard coded in the plugin for now.
Remaining tasks
User interface changes
None
API changes
Data model changes
Issue fork navigation-3383896
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
hooroomooComment #4
hooroomooThe variables are declared inside of the twig file so it is more of an exploratory issue for now
Comment #5
hooroomooComment #6
lauriiiComment #7
hooroomooComment #8
hooroomooComment #9
hooroomooComment #10
hooroomooComment #11
hooroomooComment #12
hooroomooComment #13
hooroomooComment #14
hooroomooComment #16
ckrinaUpdating issue summary to make it easier to understand what the issue does, so we can get reviewers easier.
Comment #17
claireristow commentedCode-wise, I don't have enough module experience to approve but functionality-wise, this is looking great!
Comment #18
mherchelCan you bring this up to date with 1.x now that #3386509: Refactor JavaScript is merged?
Comment #19
tedbowLooking good. Did a code review. See MR comments
Comment #20
hooroomooComment #21
mherchelCurrently working on the templates here to ensure strings are translated, markup and aria attributes are correct.
Comment #22
mherchelThe templates are in good shape now. There's a number of @todo's that we can get to later.
Still needs PHP and functionality reviews.
Note that when tried to test this, I ran into an error
I resolved this by ) checking out a previous version of the code (
7db614c10cb472347875141e19d239cbe2df5624), 2) uninstalling the module, 3) checking out the latest version of the code, and 4) reinstalling the module.Comment #23
ckrinaAfter following the steps @mherchel mentioned in #22 (because I got the same error) I've been able to test this and feature wise works as expected.
Comment #25
mherchelThanks for the reviews @deviantintegral and @tedbow!
What's the next step here? Should these be followups, or does this issue still need work?
Comment #26
mherchelHad discussions 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
from @deviantintegral
For now I'm committing this (so it can unblock some work on the templates and CSS). I'm adding this additional comments and info to #3381754: [PLAN] Use Menus to generate the links in the sidebar, where we can figure out how we want to get this data.
Comment #28
mherchelComment #29
mherchelThanks everyone!