Skip to content

Feature: Query Loop Block Support #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 25 commits into
base: feature/classic-editor-support
Choose a base branch
from

Conversation

s3rgiosan
Copy link
Member

@s3rgiosan s3rgiosan commented Mar 18, 2025

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 changed the base branch from feature/data-api-backbone to feature/classic-editor-support March 18, 2025 01:03
@s3rgiosan s3rgiosan self-assigned this Mar 18, 2025
@s3rgiosan
Copy link
Member Author

I've created a try/block-editor-ui all-in-one branch to make it easier to test the features in both the block and classic editors, as well as the Query Loop integration.

@jeffpaul jeffpaul added this to the 1.7.0 milestone Mar 21, 2025
@jeffpaul jeffpaul moved this to Code Review in Open Source Practice Mar 21, 2025
@jeffpaul
Copy link
Member

@rickalee @fabiankaegy bumping this for your review

@s3rgiosan s3rgiosan changed the title Featured: Query Loop Block Support Feature: Query Loop Block Support May 16, 2025
@benlk
Copy link

benlk commented May 22, 2025

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.

s3rgiosan added 2 commits May 26, 2025 15:32
…-support

# Conflicts:
#	includes/API/V2/Post/Field/Relationships.php
#	package-lock.json
#	package.json
@s3rgiosan
Copy link
Member Author

s3rgiosan commented May 26, 2025

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

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.

3 participants