phenaproxima / starshot-prototype

Prototype of a new kind of Drupal, based on recipes and loaded up with contrib's best modules and themes. Not a fork or a distribution.
https://drupal.org/starshot
106 stars 36 forks source link

Create a Card block content type #76

Open phenaproxima opened 1 month ago

phenaproxima commented 1 month ago

This is part of #12.

In a one-on-one chat, @larowlan and I felt that it would be a good idea to start adding some useful block types, even though we don't quite have a page layout system in Starshot yet. A card block type seems useful because, even if we don't have a decent layout system, cards might still make sense in the sidebar in some situations. There's no harm in building out the data model/fields now, even without any special affordance for layout.

phenaproxima commented 1 month ago

I think we should also think about a 'card reference' block type recipe (Separate PR)

@larowlan, can you open a separate issue or PR for that?

phenaproxima commented 1 month ago

As of #77, I think we might want to start using Type Tray for the block types, and ship some icons.

mandclu commented 2 weeks ago

There are a couple of things about this PR that I'm not sure I understand. For starters, I've heard that the intent for XB is to use something other than blocks or paragraphs, likely some new kind of entity intended to incorporate the best of both former approaches.

Also, when I've personally created "cards" during site builds, it has been as a display mode. In other words, my view is that the concept of "card" is more about how to display information than what is being displayed. So I could display an event as a card, a person as a card, even a CTA as a card, but I don't know that people will have a uniform idea of what a generic "card" would contain.

pameeela commented 2 weeks ago

@mandclu keep in mind that XB will not be ready for the initial Starshot release, so in the meantime I think we will have to use blocks for some elements. I agree often cards are view modes, but there are definitely cases where you want a card element while you are building a page that is not a reference to another entity. But I don't think we want to approach it piecemeal, we should document the content model for Starshot first and then determine whether a card is needed.