Add an option to render sorts when display source is not present.

Created on 25 November 2016, about 8 years ago
Updated 28 June 2024, 5 months ago

Problem/Motivation

In this moment Sorts blocks can not be used with Block view display because of block displays can not be found on the page.
If we'll be have an ability to render block without found view display then we can handle query parameters on the query_alter hook.
Facets module working in the same way.

Proposed resolution

Add new setting "Show sort block when source display is not rendered"

User interface changes

Accordingly to the fact that all search fields stored as a different configuration objects, it can be better to add setting to the block instance, but I'm not sure for now.

Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

🇲🇪Montenegro kruhak

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

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

  • 🇧🇪Belgium ludo.r Brussels

    Patch #11 works, however it seems there's an issue with the form option.
    It doesn't get saved as expected (gets saved with null value).

    I had to set myself the render_source property to FALSE in the config.

Production build 0.71.5 2024