Add Negate option

Created on 9 October 2020, about 4 years ago
Updated 16 August 2024, 4 months ago

Problem/Motivation

It's sometimes useful to show a block for all menu items EXCEPT for a specific menu item or subsequent children.

Proposed resolution

Add a "Negate" option to menu condition visibility configuration.

Remaining tasks

Test this patch.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States callinmullaney

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.

  • πŸ‡ΊπŸ‡ΈUnited States jhuebsch

    This is a very useful addition, thanks.

    One thing I have noticed with the patch is that if selected and saved, the next time you look at the setting in the GUI it visually appears as unchecked.

  • πŸ‡ΊπŸ‡ΈUnited States jhuebsch

    In addition to the previous issue I mentioned, there is an issue with using this negate in a context. Having a context with a menu condition with a negate will cause an Out of Memory error on the webserver even if the context is disabled.

Production build 0.71.5 2024