Allow rendering view modes instead of menu links (submodule)

Created on 11 October 2024, 6 months ago

Problem/Motivation

Hey, this is just a proposal for the far future, but I think it makes sense to discuss this.

Some days ago I came across entity_submenu_block module, which allows rendering the submenu level of the current page as entity view modes. It has some further options, but that's the key functionality.

As a user of menu_block since ever, I soon thought, this would be super powerful if it would be built on top of menu_block to combine the functionality!

While menu_block allows selecting the levels to render, title, etc. a lot more, entity_submenu_block provides settings to show rendered entities instead of text links in the menu block.

A menu_block submodule, e.g. menu_block_entities (or sth.) would implement the functionality, it would solve the existing functionality plus for example:

  • Render sibling menu items as entities
  • Render multiple menu levels as entities
  • Render a selectable menu tree as entities
  • and that all combined with the title linking etc.

Together, that would be able to solve even more use-cases, which the modules can't solve stand-alone.

So what do you think about that? Should we implement a menu_block submodule based on entity_submenu_block? And what should be the name?

Happy to discuss!

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Comments & Activities

  • Issue created by @Anybody
  • 🇩🇪Germany Anybody Porta Westfalica
  • 🇨🇦Canada joelpittet Vancouver

    @anybody, I think this would be better as a separate module if you can merge the two. The feature is too substantial to keep as a submodule, so it makes sense to split it out, feel free to take the idea and run with it, let me know if you need something to help the integration, happy to have it as an ecosystem module

  • 🇩🇪Germany Anybody Porta Westfalica

    Thanks @joelpittet! Thanks for your feedback and I hope you like the idea.

    I'll see when I may have the time to implement this and keep you updated here. If anyone else is also interested in participating or has better alternatives, please let me know.

  • 🇩🇪Germany Anybody Porta Westfalica
Production build 0.71.5 2024