Closed (won't fix)
Project:
Drupal core
Version:
8.0.x-dev
Component:
other
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2008 at 16:50 UTC
Updated:
29 Jul 2014 at 17:47 UTC
Jump to comment: Most recent
Comments
Comment #1
greenskin commented+1
I would love to see something like this implemented in core. A basic API of sorts to check common interests like node type, category terms, and or paths that modules can utilize would be fantastic. Many a module utilizes the same code that the block module implements for checking visibility based on the path, with the API modules won't have to duplicate code. The visibility API could also provide a hook for contrib modules to extend visibility for their own needs or make other features available for other modules.
Comment #2
tjholowaychuk commentedI dont work with Drupal anymore, and the module needs much more love haha but yeah it belongs in core for sure
Comment #3
thedavidmeister commentedI don't think Visibility API is on the level needed for D8, and is no longer maintained. It appears to only have role/path checking and then relies on PHP-in-the-database for everything else.
Panels and Context are much more powerful examples of this kind of idea and D8 has made many improvements to the block system.