Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294883

Add support for OR in block visibility conditions

$
0
0

Problem/Motivation

Block visibility settings allow to show a block "per page path" OR "per content type" only.

Example: "Recent blog posts" - a pure blog related block.
If "Pages" is set to "All pages" AND "Content types" to "Blog entry" it will show up ONLY on blog posts but not on Blogs page.
If "Only the listed pages" is set to "blog" it will show up ONLY on Blogs page but not on any of blog posts.
If "Only the listed pages" is set to "blog" AND "Content types" is set to "Blog entry" it will not be shown at all. Nowhere.
Isn't it logical to allow it to be visible at Blogs page AND Blog posts?

The same goes for any other block, not only "recent blog posts".

(There are snippets like this one http://drupal.org/node/134425 but they require the PHP module.)

Steps to reproduce

Proposed resolution

Add support for OR conditions groups

Remaining tasks

Add automated test coverage
Update issue summary proposed resolution and steps to reproduce

User interface changes

2022-07-21/923934 after patch.png

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 294883

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>