Weight support for conditions

Created on 2 March 2018, almost 7 years ago
Updated 26 February 2023, almost 2 years ago

I think it would be a nice feature to allow weighting of the conditions. One thing I've run across recently was needing the ability to say:
- show a block when the node type is Page
- show a block when the URL is /something/something/, /something/something/*
- show a block when the node type is not Article
Where Article nodes *may possibly* have a URL of /something/something/*

The current problem is i need 2 conditions to do the node type = Page and node type is not Article

A workaround is just to add them to the condition list in the order i need them, but I think it would be a nice feature to have a drag and drop weight/re-order that's already pretty prominent in Drupal.

I'm not even sure if re-ordering would add this ability, or if we need to take it further with looking at condition groups.
Ideally, i could add a block visibility that says:
- show the block
WHEN node type IS Page
AND node type IS NOT Article
OR vocab IS NOT Article Category
AND URL is /something/something/
OR URL is /something/something/*

And even though an Article node *could* have a URL like /something/something/*, it would still not show on the page because the node type is Article, so it fails the `node type IS NOT Article` check.

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States joshua.boltz

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