Skip to content

Feature: Query Loop Block Support - #98

Open
s3rgiosan wants to merge 70 commits into
developfrom
feature/query-loop-support
Open

Feature: Query Loop Block Support#98
s3rgiosan wants to merge 70 commits into
developfrom
feature/query-loop-support

Conversation

@s3rgiosan

@s3rgiosan s3rgiosan commented Mar 18, 2025

Copy link
Copy Markdown
Member

Warning

This PR is based on #97

Description of the Change

This PR introduces Content Connect relationship support for the Query Loop block, allowing posts to be filtered based on relationships.

Closes #83

How to test the Change

Changelog Entry

Added - Query Loop block integration with Content Connect relationships.

Credits

Props @s3rgiosan

Checklist:

@s3rgiosan

s3rgiosan commented May 26, 2025

Copy link
Copy Markdown
Member Author

Note that we'll also need a button to clear search query parameters: either just this integration's parameters, or all query parameters currently in use.

@benlk Clearing all query parameters is tricky. The Query block’s core filters don’t offer direct integration, and plugins like Advanced Query Loop can extend or alter them. That makes it hard to identify which filters are active or what the default state should be. I’ve switched from PanelBody to ToolPanel in the UI, which makes it easier to reset custom parameters tied to this integration.

Screenshot 2025-05-26 at 18 16 41

@fabiankaegy fabiankaegy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is working very well! I added a few minor comments that should all be easy to address :)

Comment thread assets/js/block-extensions/core-query.js Outdated
Comment thread assets/js/block-extensions/core-query.js Outdated
Comment thread assets/js/block-extensions/core-query.js
Comment thread assets/js/block-extensions/core-query.js Outdated
Comment thread package.json Outdated
Comment thread assets/js/store/index.ts Outdated
Comment thread assets/js/components/RelationshipsPanel/index.tsx
@jeffpaul

jeffpaul commented Oct 6, 2025

Copy link
Copy Markdown
Member

@s3rgiosan back to you after some code review feedback

@jeffpaul
jeffpaul removed their request for review October 6, 2025 13:22
Base automatically changed from feature/classic-editor-support to develop August 12, 2026 15:08
@s3rgiosan
s3rgiosan requested a review from fabiankaegy August 14, 2026 13:43
@s3rgiosan

Copy link
Copy Markdown
Member Author

@fabiankaegy ready for you re-review

/**
* Setup the Query block integration module.
*
* @since 1.7.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@s3rgiosan Should we do a version bump for since for 2.1.0?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Thanks for flagging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Code Review

Development

Successfully merging this pull request may close these issues.

Integrate content relationships with Core Query Loop

5 participants