Skip to content

Allow details/accordion block to structure query loop output #72613

@Drivingralle

Description

@Drivingralle

What problem does this address?

It's not possible to use the details or the accordion block (of 6.9) inside the query loop block to generate a list of posts that can be collapsed.

Example:
Create a FAQ accordion based on a CPT. The title is the question and the answer is the content.
The accordion should be auto-generate based on how many FAQ items are published.

What is your proposed solution?

Allow inner-blocks of accordion to be a query loop and allow the child post template to be accordion items.
Same for details block.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions