Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
To implement the designs in #2828874: Design top level landing page for the new documentation system, we need to be able to display two levels of menu items in a menu on /documentation.
- Official Guides
-- User Guide
- Community Guides
-- Drupal 8
-- APIs
-- Developers
Suggested implementation:
- Create a new "documentation" menu
- Allow the new menu to be added as a panel pane to section nodes
- Grant grasmash access to the "documentation menu"
Comments
Comment #2
grasmash CreditAttribution: grasmash commentedWhat is the mechanism for enforcing flat OG menus? I can't find the code or configuration responsible. Is it a d.o customization?
Comment #3
grasmash CreditAttribution: grasmash commentedComment #4
drummThere are a few places throughout drupalorg module for this:
In
drupalorg_form_node_form_alter()
:and
However, if this is just for one landing page, or a handful of pages, do we really need OG menu? This can be a separate menu created at
/admin/structure/menu
.Comment #5
grasmash CreditAttribution: grasmash commentedI'm fine with creating a separate menu at
/admin/structure/menu
. However, I do not have the permission to do that.This will require a DA admin to:
Comment #6
grasmash CreditAttribution: grasmash at Acquia commentedComment #7
grasmash CreditAttribution: grasmash at Acquia commentedUpdating issue summary.
Comment #8
grasmash CreditAttribution: grasmash at Acquia commentedComment #9
grasmash CreditAttribution: grasmash at Acquia commentedI guess the other option here is to hardcode the HTML in a custom pane and just apply a CSS class.
Comment #10
grasmash CreditAttribution: grasmash at Acquia commentedNeed review from Drum.
Please indicate whether we should:
1. Create 2 new menus on Drupal.org, or
2. Hard code HTML lists in custom blocks.
If 2, the following work is required of a Drupal.org admin:
Comment #11
grasmash CreditAttribution: grasmash at Acquia commentedThis issue has been in "needs review" status for 27 days. How can this be moved forward?
Comment #12
grasmash CreditAttribution: grasmash at Acquia commentedAs a temporary solution, these menus have been added as hardcoded HTML into panel panes on the following nodes:
https://www.drupal.org/documentation
https://www.drupal.org/node/2995339
Comment #13
hansfn CreditAttribution: hansfn commentedThat is a start :-)
Can I complain about URLs again? The Drupal 7 tab on https://www.drupal.org/documentation links to https://www.drupal.org/node/2995339 - not the URL alias (which is https://www.drupal.org/documentation/7).
PS! The Drupal 7 tab on https://www.drupal.org/documentation/7 links to https://www.drupal.org/drupal-7-documentation - which doesn't exist.
Comment #14
grasmash CreditAttribution: grasmash at Acquia commentedBoth broken links have been fixed.
Comment #15
grasmash CreditAttribution: grasmash at Acquia commentedI'd fine with the hardcoded menus. It doesn't seem worth the overhead to create the menus, assign permissions, and make the panes available. Closing.