Allow other modules to include their own Navigation blocks during installation

Created on 2 December 2024, 5 months ago

Problem/Motivation

Navigation module provides a flexible system to manage the blocks shown in the Navigation Bar. However, it can be confusing for site admins that they have to manually add the Navigation blocks provided by other modules, or even they won't notice that other modules are providing those blocks.

The aim of this issue id to provide a simple system that will allow modules to add Navigation Blocks in a similar way as recipes do in ✨ Provide Config Action to add new blocks to navigation from recipes Active . In this way, block are added to the Navigation Bar, and editors afterwards can decide whether the blocks can be moved or removed from the bar.

Dashboard and it's Dashboard block is a good example for this new feature.

Proposed resolution

Create a new hook navigation_deafults that allows to define Navigation blocks that will be added to Navigation when the module providing the logic in installed.

Remaining tasks

Finish definition
Test POC

User interface changes

None

Introduced terminology

None

API changes

Add a new hook defined in Navigation module to declare the default blocks.

Data model changes

Release notes snippet

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component

navigation.module

Created by

πŸ‡ͺπŸ‡ΈSpain plopesc Valladolid

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024