Hide menu block on pages not included in menu

Created on 17 October 2018, about 6 years ago
Updated 20 May 2024, 7 months ago

Don't render the menu block if the current page is not included somewhere in the associated menu.

Use case:
When building a menu for a section of a site or other collection of pages that are all included in a given menu, this setting provides a simple way to ensure that the section menu only appears on pages that are part of that section—no visibility conditions required.

Original Issue Summary

I am working on a project now that has the requirement where a menu block should only appear on pages that are linked in the menu.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States MattDanger

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.71.5 2024