Problem/Motivation
Block plugins have the plumbing to be contextual, but they don't have the UI exposed to allow for that sort of mapping.
Steps to test (from @webchick in #30):
1) Apply the latest patch
2) drush si
3) drush en aggregator
4) admin/config/services/aggregator
5) Add a feed to http://rss.cbc.ca/lineup/topstories.xml (Canada FTW)
6) admin/structure/block
7) Add the "Aggregator feed" block
Proposed resolution
In the course of building a firm foundation for Display Suite and Panels, this should be fixed to have a unified tool both (or any) module can use.
Remaining tasks
- RTBC
- Get someone to commit it!
User interface changes
See #48
API changes
Beta phase evaluation
Issue category | Task |
---|---|
Issue priority | Major because it unblocks contrib and improves generic caching logic for 99% of contextual block implementations which reduces developer mistakes. |
Prioritized changes | The main goal of this issue is usability/contrib/caching. Contrib needs the ability to inject contexts into blocks. As it stands contrib would require a lot of code juggling to do and likely a new abstract base class for blocks if core doesn't do the work. This patch fixes that, doesn't change the API to do it and unifies the approach to be the same as Conditions. Likewise, leveraging the context system gives us a generic API which we can consult about "cacheable" things the block depends upon. This should cover the vast majority of context based caching for blocks and drastically reduce potential errors in contrib when utilizing these two systems. |