backdrop-issues icon indicating copy to clipboard operation
backdrop-issues copied to clipboard

Allow the "Create exposed form block" setting for embed displays.

Open jenlampton opened this issue 1 month ago • 2 comments

Description of the need

I often need the exposed form for views to be displayed in a block when the view display I a working with is not a block. I don't know why is this setting is limited to only block displays.

Image

Proposed solution

I would like to try to make this setting available at all times. If anyone knows of any possible repercussions, perhaps we can address those individually.

Alternatives that have been considered

n/a

Additional information

n/a

Draft of feature description for Press Release (1 paragraph at most)

Views exposed forms can now be placed as blocks for 'embed' displays.

See related: https://github.com/backdrop/backdrop-issues/issues/7028

jenlampton avatar Dec 26 '25 21:12 jenlampton

I have combined https://github.com/backdrop/backdrop-issues/issues/7028 with this issue, since inheriting the path is required for exposed forms.

jenlampton avatar Dec 26 '25 22:12 jenlampton

I needed this exact functionality just a few days ago; I endorse its addition.

I made a test module that creates a simple view with an exposed filter and an embed block and creates a test page that embeds the view. Then used the layout editor to add the exposed filter block to the test page. Works like a charm. So WFM on this. Test module is attached.

There are some phpcs complaints that look real, so at least one more go-around needed on the PR.

test_7027.zip

bugfolder avatar Dec 29 '25 23:12 bugfolder