-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discovery: prep plan for Drupalizing footer, based on megamenu header implementation #10512
Comments
Header Megamenu Explore for ExampleCMS Architecture & BuildCreated using the core menu module, doesn't look any different than usual on the backend: BlockFor fully CMS-driven, menus get a block that are placed in block layout. Not needed for this since it's a FE controlled build. Templates and FrontendSome of the important FE components to look at:
Footer MegamenuBackend ConclusionFooter Should be an easy lift with nothing special for BE.
Footer menu started already in CMShttps://va-gov-cms.ddev.site/admin/structure/menu/manage/footer Mentioned in:
Current Footer used on siteLinks are populated via
Use this as a guide for populating the CMS footer. Questions for sync call
|
@chri5tia the Header Megamenu reference is re: "Additional Context" #1 in ticket body -- The header is driven by a Drupal menu: https://prod.cms.va.gov/admin/structure/menu/manage/header-megamenu Confirming: "Megamenu" is just internal lingo to refer to the Header and all its tendrils. |
Notes from sync with Christia, Ryan, Wes:
Updated ACs to break this up. |
Created drupal ticket: #11438 |
@ryguyk So you don't have to reinvent the wheel, I put a little information about what I could see about the FE header megamenu components, if it's more efficient for you to build on/add on to that. I think my contribution to this ticket is complete. |
Re: #11438 , Christia noted that the 3 sections of the menu will get named within the menu itself, and that naming isn't decided. One thing for Front-end consideration (fyi @ryguyk ): The "Section" labeling will be actually in the menu as top-level hierarchy, meaning it can be edited in Drupal. That menu content will then go through to front-end and be used to layout the markup, since we decided to keep all 3 footer sections in one menu. So: that top level of the footer nav will be meaningful in the markup. We need to make sure the front-end build is resilient to any Drupal edits. Meaning: if we initially call the sections "Section 1, 2, 3" and someday rename them to "Footer subnav 1 2 3", we need to make sure that won't break the front-end I don't know how the menu will pass through as GraphQL, if there will be an immutable handle to use for the sections, rather than the entered content. We won't be able to prevent someone editing it in Drupal, and we don't want that to break the footer, so: if entered content name matters, we may want to reconsider using 1 menu rather than 3 menus. Lemme know if that makes sense. |
(presumably this is also true in the header already, and won't be an issue. Just flagging for awareness.) |
Created #11482 to capture the eventual implementation. Refinement of that ticket will depend on architectural decisions related to concerns documented below: Front End
"Language Assistance" LinksThis section of the footer menu involves a React component that has more going on than what it might appear on the surface. The links are generated from some configuration around supported languages, and, additionally, clicks on these links have effects that seem to extend outside the footer alone. It is almost certainly the case that these links will not be included in the first pass of Drupalization (if ever). |
Dave note:
|
Description
We want the Footer to be driven by Drupal, without any visible change to users. This ticket should capture the tasks / scope of work to migrate to Drupal, including:
Not included in scope:
Additional context
Acceptance Criteria
The text was updated successfully, but these errors were encountered: