Skip to content
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

Spike: Provide a way to preview the results of conditions in post template blocks #15

Open
mogmarsh opened this issue Oct 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mogmarsh
Copy link
Collaborator

mogmarsh commented Oct 11, 2023

Description

Because conditional blocks could be used in post templates to surface different behavior based on the position of an item in the post template (e.g., show featured image only on the first item in the list) it would be nice to have a way to preview that behavior in the editor, without relying on editors saving the post and viewing it on the front-end.

Use Case

Using a Query Loop block and having different behavior for the first item in the list, and being able to see that in the editor.

Acceptance Criteria

  • Devise a way to preview the results of conditional blocks in the editor when used in post templates without hiding the conditional block so that it's no longer editable/reachable.
  • Create a follow-up issue to implement the recommended solution.
@mogmarsh mogmarsh added the enhancement New feature or request label Oct 11, 2023
@kevinfodness kevinfodness changed the title Create a REST endpoint to evaluate a condition Provide a way to preview the results of conditions in post template blocks Feb 21, 2024
@kevinfodness kevinfodness changed the title Provide a way to preview the results of conditions in post template blocks Spike: Provide a way to preview the results of conditions in post template blocks Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant