Skip to content

Allow renaming of the header dropdown #1386

@AlenkaF

Description

@AlenkaF

Currently the header dropdown generated after n_links_before_dropdown is by default named More. It would be a nice feature if one could group remaining header links into a dropdown with a custom name.

One option I see is that generate_header_nav_html could accept an argument to use when wrapping the final few header items in a "More" dropdown:

# Wrap the final few header items in a "more" dropdown
links_dropdown = links_html[n_links_before_dropdown:]
if links_dropdown:
links_dropdown_html = "\n".join(links_dropdown)
out += f"""
<div class="nav-item dropdown">
<button class="btn dropdown-toggle nav-item" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
More
</button>
<div class="dropdown-menu">
{links_dropdown_html}
</div>
</div>

Maybe related to #1016

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: discussionNeeds discussion before an implementation can be madetag: componentIssues or improvements associated with a given component in the theme

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions