Incompatibility with Menu Item Extras module

Created on 20 July 2021, almost 3 years ago
Updated 2 March 2024, 4 months ago

Problem/Motivation

While upgrading to the 8.x-2.0beta branch on Drupal 8.9 the sitemap is rendered using the main menu styles and template when using the Menu Items Extras module.

Steps to reproduce

Enable Menu Item Extras module
Enable sitemap module
Set the sitemap to use the main menu
View template suggestions using twig debug
Verify after 'modules/contrib/sitemap/templates/sitemap-item.html.twig' the next template being used is 'modules/contrib/menu_item_extras/templates/menu--extras.html.twig'

Proposed resolution

We solved this problem by coping 'menu.html.twig' and creating a 'menu--sitemap--main.html.twig' because our theme had a 'menu--extras--main.html.twig' which renders after the sitemap templates.

It may be possible to increase the weight of the module so that it renders after the Menu Item Extras templates.
You could include a 'menu--sitemap.html.twig' template or we could avoid using Menu Items Extras module ;-)

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Thanks for a great module and contributing your time!

πŸ› Bug report
Status

Closed: outdated

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Stockfoot

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024