manager-ui icon indicating copy to clipboard operation
manager-ui copied to clipboard

Schema: Matrix Field

Open zcolah opened this issue 1 month ago • 0 comments

Problem

Users managing a multi-page model called "Events" face significant challenges in efficiently adding event timings. Each event (e.g., a play) occurs on multiple days, and the current workflow requires the user to:

  1. Create the event times separately in a dedicated "Times" model.
  2. Reference these times in the "Event" model via a one-to-many relationship.

This process is:

  • Time-consuming and tedious.
  • Frustrating for users who frequently deal with multi-instance data like timings, ingredients, slides, etc.

Based on user feedback, this feature will significantly improve workflows for many common use cases, such as events, recipes, and presentations.

Solution Desired

A Matrix Field that enables users to quickly create and manage small groups of content directly within a content item, eliminating the need for separate models or relationships.

Key Features

  1. Inline Data Entry:Users can create and manage groups of related data (e.g., event timings) directly within the parent content item. Each group will function as a mini-form with customizable fields (e.g., date, time, notes).
  2. Flexible Field Types Allow users to define the type of fields within the repeater (e.g., text, date, dropdown, rich text).
  3. Quick Add/Edit/Delete: Provide intuitive UI for adding, editing, or deleting individual data groups without navigating away from the parent content item.

User Flow

  1. Open the "Event" content item (e.g., "Romeo & Juliet").
  2. Navigate to the "Timings" section with the Matrix field.
  3. Click "Add Timing", filling in fields like:
  • Date: 2024-02-14
  • Start Time: 7:00 PM
  • End Time: 9:30 PM
  1. Repeat as needed to add more timings.
  2. Save the event.

Example Use Cases:

Event Scheduling:

Quickly add multiple timings (date and time) for a play directly within the event content item.

Recipes:

Add ingredients, measurements, and preparation steps inline within a recipe content item.

Presentations/Articles:

Add slides or sections, each with a title, description, and media file.

zcolah avatar Jan 14 '25 18:01 zcolah