Skip to content

Comments Query Loop block #34996

@SantosGuillamot

Description

@SantosGuillamot

Description

An advanced block that allows displaying the comments of a specific post based on different parameters and visual configurations. It should be similar to the Query Loop block.

This block is part of the Post Comments Loop block, for more context please visit this Tracking Issue or its GitHub project.

Potential Settings

  • Layout settings: It should be similar to the ones in the Query Loop.
    • It can inherit the default layout or change the width and content.
    • It could be nice to be able to select the content and width (or the padding) of the child comments.
  • Color settings: It should be the same as the Query Loop.
  • Loop settings:
    • Order by: There is a Discussion Setting to select the order of the comments. I guess we should use this by default unless they change it in the Comment Loop block.
  • List view settings. We can replicate the settings in the Query Loop:
    • Items per page: There is a Discussion Setting to select how many top level comments users want per page. I think we should respect that unless it is changed in the block itself.
    • Offset.
    • Max pages.
  • Advanced settings: We can replicate the behaviour in the Query Loop:
    • HTML element: Allow users to select if they want a <div> , <section> , <aside> HTML element.

References

  • This should be similar to the Query Loop block: Guide and GitHub.

Metadata

Metadata

Labels

New BlockSuggestion for a new block[Block] CommentsAffects the Comments Block - formerly known as Comments Query Loop[Feature] BlocksOverall functionality of blocks[Status] In ProgressTracking issues with work in progress

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions