Skip to content

Comments Query Loop block #34996

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.

Activity

  1. added
    [Feature] Blocks
    [Block] Comments
    New Block
    on Sep 21, 2021
  2. michalczaplinski commented on Sep 22, 2021

    @michalczaplinski
    Contributor

    Could you assign the issue to me @SantosGuillamot? It seem that I cannot do it myself as a contributor. Thanks!

  3. added
    [Status] In Progress
    on Sep 23, 2021
  4. michalczaplinski commented on Sep 30, 2021

    @michalczaplinski
    Contributor

    Hi @jameskoster! Do you have a design for the icon for this block?

  5. jameskoster commented on Sep 30, 2021

    @jameskoster
    Contributor

    Ah, no we don't. It's probably safe to use the regular loop block for now, and we can explore design for a dedicated comment loop block later. I'm not 100% sure we need one.

    Edit: Actually, the Post Comments icon might make more sense than the regular loop icon. It doesn't look as 'loopy' but will probably be adequate.

  6. changed the title [-]Post Comments Query Loop block[/-] [+]Comments Query Loop block[/+] on Oct 8, 2021
  7. gziolo commented on Oct 28, 2021

    @gziolo
    Member

    This block needs more work so let's reopen the issue.

  8. reopened this on Oct 28, 2021
  9. SantosGuillamot commented on Oct 28, 2021

    @SantosGuillamot
    ContributorAuthor

    Great! Is there any place to check which tasks are left to consider this issue done?

  10. gziolo commented on Oct 28, 2021

    @gziolo
    Member

    The comment #35231 (comment) from @michalczaplinski should be a good summary of what's left.

  11. michalczaplinski commented on Oct 29, 2021

    @michalczaplinski
    Contributor

    Continuing adding features and improvements to the Comments Query and Comment Template in #36065

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

New Block[Block] Comments[Feature] Blocks[Status] In Progress

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions