Skip to content
This repository has been archived by the owner on Aug 23, 2021. It is now read-only.

Support "Display field" in group-lists #215

Open
jamespohalloran opened this issue May 21, 2021 · 2 comments
Open

Support "Display field" in group-lists #215

jamespohalloran opened this issue May 21, 2021 · 2 comments
Labels
enhancement New feature or request pitch:defineSchema Issues related to the proposed defineSchema pitch (#13)

Comments

@jamespohalloran
Copy link
Contributor

Summary

Currently, when you have a group-list field, each entry is labelled as "X item", where X is the name of the group-list field. I would like the ability to configure a "display field", so that I can quickly distinguish between my entries

Basic example

Screen Shot 2021-05-21 at 9 42 01 AM

It's currently a tedious process finding the list entry that I would like to edit. It also led to an editor issue, where my editor added a new entry, assumed it was added to the bottom of the list, and ended up editing the wrong entry.

Motivation

If I could configure the list to display each item's "title" field, this would be a much improved experience. Alternatively, maybe I could provide my own "render" function within the schema definition? (So that I could customize the list item to show an image for example?).
Maybe we also render the list-item's first field by default?

@jamespohalloran jamespohalloran added the enhancement New feature or request label May 21, 2021
@DirtyF
Copy link
Contributor

DirtyF commented May 21, 2021

A common user request in Forestry was the ability to pick up the fields to display, for instance, when you use a group list for an image gallery, people expect to see a thumbnail in the list view.

@jeffsee55 jeffsee55 added the pitch:defineSchema Issues related to the proposed defineSchema pitch (#13) label May 21, 2021
@jeffsee55
Copy link
Member

jeffsee55 commented Jun 14, 2021

@DirtyF Instead of needing to manage this logic on the backend we could expose the frontend to our config, allowing us to leverage Tina as it works today with this pitch https://github.com/tinacms/product/discussions/13

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request pitch:defineSchema Issues related to the proposed defineSchema pitch (#13)
Projects
None yet
Development

No branches or pull requests

3 participants