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

Display Posts in Sortable Table #25503

Open
Tracked by #41405
iamtakashi opened this issue Sep 21, 2020 · 4 comments
Open
Tracked by #41405

Display Posts in Sortable Table #25503

iamtakashi opened this issue Sep 21, 2020 · 4 comments
Labels
[Block] Query Loop Affects the Query Loop Block [Type] Enhancement A suggestion for improvement.

Comments

@iamtakashi
Copy link

iamtakashi commented Sep 21, 2020

Related: #25501 #25502

It's less common than the related cases above, but what if the user wants to display posts by a Query Loop block in a sortable table?

Frame 68

@ntsekouras
Copy link
Contributor

Hey @iamtakashi I think this is a quite complex proposal that includes a whole new component/block ( Sortable table ) and many nuances to that, like pagination etc. My above comment I believe applies for the Carousel and Slider issues as well. If it comes to that, the first steps would be to implement the above blocks and then implement them as a block variation probably.

I'm curious though if the table case would be useful enough. Carousel and Slider would be really helpful for sure in my opinion.

Regarding the issue here for inline posts: #25505, I think this can be achieved with css. It's on the next steps to support display of items as a vertical list or grid(inline), but that would be just simple styling, at least for start.

There are many questions to be answered yet, so more iterations and feedback will show us the way :).

@iamtakashi
Copy link
Author

Hi @ntsekouras, thanks for sharing your thoughts and the steps that'd likely take place. Much appreciated.

If it comes to that, the first steps would be to implement the above blocks and then implement them as a block variation probably.

Just to make sure I'm understanding correctly what you mean, are you saying if Gutenberg allows to have Carousel or Slider at some point, those would be separate blocks, not with the query loop block?

I'm curious though if the table case would be useful enough. Carousel and Slider would be really helpful for sure in my opinion.

Yes, carousel and slider would be much more popular than this for sure. I should've noted that, like the inline posts #25505, this sortable table was just an example of an unusual case that some pattern makers might want to achieve. This was more of a question of how one could do it, and I didn't really mean to advocate Gutenberg to include the sortable table out of the box :)

There are many questions to be answered yet, so more iterations and feedback will show us the way :).

Yes :) I'm very excited about how the query loop block evolve going forward.

@ntsekouras
Copy link
Contributor

Just to make sure I'm understanding correctly what you mean, are you saying if Gutenberg allows to have Carousel or Slider at some point, those would be separate blocks, not with the query loop block?

I feel like they should be separate blocks because a common use case of Slider is with just photos and not necessarily with posts. It could be with taxonomies and their image.. Same goes for Carousel.

@aristath aristath added the [Block] Query Loop Affects the Query Loop Block label Sep 22, 2020
@iamtakashi
Copy link
Author

a common use case of Slider is with just photos and not necessarily with posts. It could be with taxonomies and their image.. Same goes for Carousel.

Yes, there are sliders and carousels for just purely images, but it's fairly common to see the ones displaying posts or pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Query Loop Affects the Query Loop Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

4 participants