Problem/Motivation

As a distribution developer, I would like to provide templates for menus on a per view mode basis.

Proposed resolution

Add more template suggestions specific to menus rendered as a part of field_menu.

Screen shot of html output with theme debugging turned on, showing lots of theme file suggestions for menus.

Issue fork field_menu-3279267

Command icon 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

trackleft2 created an issue. See original summary.

trackleft2’s picture

Adding a patch that includes the changes in the merge request.

trackleft2’s picture

Issue summary: View changes
StatusFileSize
new674.05 KB
trackleft2’s picture

Status: Active » Needs review
StatusFileSize
new3.85 KB

Upon further testing it appears we need to prefix the template name with menu__
Adding updated patch
Diff between first patch and this new one available here: https://git.drupalcode.org/project/field_menu/-/merge_requests/1/diffs?c...

code-brighton’s picture

Status: Needs review » Fixed

Thank You trackleft2, all seemed good to me, I added another commit for some minor coding standard fixes, and is now in 2.0.1 release

trackleft2’s picture

Status: Fixed » Closed (fixed)

Thanks!