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

Evaluate condition on front end #17

Open
mogmarsh opened this issue Oct 11, 2023 · 3 comments
Open

Evaluate condition on front end #17

mogmarsh opened this issue Oct 11, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request php Requires understanding PHP

Comments

@mogmarsh
Copy link
Collaborator

mogmarsh commented Oct 11, 2023

Description

The condition should be evaluated on the front end, and the value passed to the child is-true and is-false blocks.

Use Case

the is-true or is-false blocks should display according to the result of the condition.

Acceptance Criteria

  • Wire up the condition specified in block attributes to the conditional logic in the registry and control block visibility accordingly.
@mogmarsh mogmarsh added the enhancement New feature or request label Oct 11, 2023
@kevinfodness kevinfodness added the php Requires understanding PHP label Feb 21, 2024
@jakewrfoster jakewrfoster self-assigned this May 8, 2024
@jakewrfoster
Copy link
Member

@mogmarsh should this affect excerpts? for example, on an archive list page excerpt, should the conditional blocks show?

@mogmarsh
Copy link
Collaborator Author

mogmarsh commented May 9, 2024

@jakewrfoster I'm leaning towards it not affecting excerpts, but i don't have a strong opinion.

@jakewrfoster
Copy link
Member

Agreed, I think this can wait for a future feature if it's desired

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request php Requires understanding PHP
Projects
None yet
Development

No branches or pull requests

3 participants