In-Depth Craft Collections with Example Use Case
In this video I introduce the new "Collections" feature in Craft, designed to function like inline databases or tables, akin to Notion. I demonstrates how Collections enable users to organize and mani
Things to Take Away from the Video:
Introduction to Collections π
Craftβs new "Collections" feature is like an inline table or database, helping users organize data within a page rather than in separate, high-level entities.Creating Collections π
Users can create multiple Collections per document or page and configure Fields, which are basically properties, as text, numbers, dates, and more.Field Types and Customization π
Collections support different field types, such as single-select and multi-select fields, with more advanced options like relation fields expected soon.Filtering, Sorting, and Grouping π
Collections support multi-level filtering, single-level grouping, and sorting options, enabling users to view data from various perspectives.Real-Life Application: Rental Property Portfolio Example π
I demonstrate how Collections can be used for managing rental property data, such as tenants, rent, expenses, and monthly income.Monolithic vs. Multi-Collection Approach π
Users can choose between storing all data in one large Collection or separating it across different Collections based on your needs.Data Entry Tips and Limitations π
Although manual data entry is required, users can paste data from spreadsheets into Collections, but the feature lacks advanced automation or field calculation options for now.Custom Views and Layouts πΌ
Users can create custom views within Collections by filtering data, allowing quick access to specific information like paid and pending balances. Unfortunately the Table view is the only option right now. Kanban and other views are said to be planned.Sum Calculations for Numeric Fields β
Collections support some calculations, providing quick totals at the bottom of columns for fields like income and expenses.