This is fantastic, and I'll definitely be using it to help push for my agency to try Statamic. Was hoping you'd touch on the difference between the Grid and Replicator fields, and when you'd pick one over the other.
@MartyFriedel4 ай бұрын
If you to go back to earlier versions of Statamic, the differences were a bit more obvious. Grid, by default, uses a "Table" layout like I have in the video. But also now has a "Stacked" layout which can make it look like the Replicator. Grid also has the ability to label the button to add a new row. When creating your Grid, you need to pick your fields for each row - and you can only have one set. But with a Replicator, you can have multiple Sets (and organisation) which makes it ideal for a Page Builder - so when you add a new item, you can choose what Set you want. I've got another talk coming up in September on building maintainable sites in Statamic so that will be covered more there too. With Replicator you can also have controls to expand and collapse all sets - which is good for long lists to make it easier to drag-and-drop or view without having every field visible. At their core, they're very similar - multiple items can be added to an ordered list. But subtle little differences separate them based on use case. For a Page Builder, or if I want the author to pick a different row Set of fields, I'd use Replicator. But for something like Session times which is always a Date and Times, then Grid works too. Both have valid uses, but at the same time, could possibly take the best of both to combine them in to a single fieldtype. Hopefully this helps a little.