-
Notifications
You must be signed in to change notification settings - Fork 635
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
UI attributes for element index cards view #15283
UI attributes for element index cards view #15283
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@i-just I’ve added some items to the Notion page we used for the previous review.
Thanks @gcamacho079! That’s all actioned now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking really good!
Couple things:
- It’s not super intuitive that to add custom fields, you still have to press “Show in element cards” in the disclosure menu. Let’s just get rid of those actions and start showing card view checkboxes for all selected custom fields that implement
PreviewableFieldInterface
. - Let’s update the checkbox select to use the new
SortableCheckboxSelect
.
Thanks @brandonkelly! It's all done now. |
…view' of github.com:craftcms/cms into feature/cms-1274-ui-attributes-for-element-index-cards-view
Description
Adds the ability to add attributes to the element card view and specify the order in which all the selected fields and attributes should appear.
src/base/ElementInterface::cardAttributes()
addedsrc/base/ElementInterface::defaultCardAttributes()
src/events/RegisterElementCardAttributesEvent
addedsrc/events/RegisterElementDefaultCardAttributesEvent
src/helpers/Cp::cardViewDesignerHtml()
src/models/FieldLayout->getCardView()
src/models/FieldLayout->setCardView()
src/models/FieldLayout->getCardBodyAttributes()
src/models/FieldLayout->getCardBodyElements()
Related issues
CMS-1274