I'm trying to customize a bit some of my list views. Is there a way to have "custom fields" on the list view?
eg: I have a Post with 3 comments and want to have a field with that "calculated amount" without storing it on the DB. Just showing thay
comments.length
value.
And is it possible to set a default sorting sorting for my collections?
It sounds like you're looking for a
ui
type field with custom cell component
Docs for swapping the components:
https://payloadcms.com/docs/admin/components#collectionsDocs for a cell component:
https://payloadcms.com/docs/admin/components#cell-componentDocs for
ui
fields:
https://payloadcms.com/docs/fields/ui#ui-fieldThanks!
Regarding to the other question.. Is it posible to define a custom sorting for each collection?
Bumping this, I have the same question on sorting
Star
Discord
online
Get help straight from the Payload team with an Enterprise License.