Create views plugins to render facets and summaries in filters and areas

Created on 8 August 2019, over 5 years ago
Updated 28 June 2023, over 1 year ago

What this patch does:

  • Add a views filter which can render facets for that view (1)
  • Add a views area which can render facets
  • Support AJAX, also in combination with views ajax get module
  • Add a summary area
  • Add a summary filter (1)
  • Remove the current AJAX support on blocks
  • Provide an upgrade path for this

(1) Exposed filter block then renders the facets or summary and knows about the context.

------ original summary ----

This is a wild idea, and I'm not 100% sure if it's possible at all, but here's the idea.

Create a views filter field so that facets can be rendered in the exposed form:

  • You don't need to expose the facet blocks in a specific region on the page
  • Theming is consistent and bit easier since it all lives inside the view's exposed form block
  • When using views AJAX, there's only one request to update the view and facets instead of the current facets AJAX implementation which means there's two calls when nothing is cached. We also use views_ajax_get which is far more performant as caching can actually work nicely here
  • This probably fixes a couple issues with the current implementation (although I can't tell which exactly). Basically, any problem that this one gives with ajax, is probably a views issue ;)

Would this be something you'd be willing to commit, if so, I will start working on it. Won't be a funny one I'm afraid, but I'm willing to dive deep here as we're experiencing some minor performance issues right now on a project because of the two requests.

Dont' forget to credit the people in #2957950: Add views area plugin β†’ - most of the area code comes from there.

✨ Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium swentel

Live updates comments and jobs are added and updated live.
  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

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