WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.46k stars 4.18k forks source link

Display Posts in Sortable Table #25503

Open iamtakashi opened 4 years ago

iamtakashi commented 4 years ago

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 commented 4 years ago

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: https://github.com/WordPress/gutenberg/issues/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 commented 4 years ago

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 commented 4 years ago

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.

iamtakashi commented 4 years ago

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.