Replies: 3 comments 1 reply
-
Your assertions are correct. Matrix fields in card/index views (both identical as far as workflow is concerned) are meant to mimic relational fields.
So while the interaction model is certainly different than working with inline blocks, it should feel very familiar to relational fields (which cards view is meant to resemble visually, as well).
Agree it’s a larger behavior change than you (the developer) might expect. The original plan was to introduce an entirely new “Inception” field type, primarily because the interaction model changes felt too big for a “view mode” setting. We ultimately decided it was OK because it’s a developer-facing setting, so it’s something we can document, and developers can train authors on the change, if they decide to switch view modes. To an author who doesn’t have access to the settings, there would be no difference between it being a view mode or an entirely different field type. Plus, as a field setting it’s much easier to switch between view modes than it would have been to switch between field types. |
Beta Was this translation helpful? Give feedback.
-
@brandonkelly Ah, ok, I see. I have to admit though that I would never have come up with the idea it would work like this, given the wording on the field settings page, and seeing ideas like @thupsi suggested in #14202. Having a card with just text on it inside of a field labeled 'Content' does not really feel like just managing a related entry with its own lifecycle. I would like to suggest making that clearer not only somewhere in the docs, but on the settings page itself, that you are not just changing the UI, but also the workflow behind it. So for my little 'How to use changes in Craft 5' guide, I would not recommend using the card view for 'content builder style' things. As this is probably my last Craft/Web/IT work, changing focus to 'real world only', I would like to say thanks again for all your work and support! |
Beta Was this translation helpful? Give feedback.
-
Made some improvements to working with nested entries (and addresses) for Craft 5.5: #16002 🎉 |
Beta Was this translation helpful? Give feedback.
-
Although I'm no longer involved in active Craft (or any other...) work, I was asked to sum up changes in Craft 5 and how to adopt to them.
All fine so far, but there is one thing I can't wrap my head around: the 'lifecycle/workflow' of nested entries in different view modes.
Not sure what is intended, buggy or just not finished in Alpha, but didn't want to wait until a beta is available.
The view mode 'As inline-editable blocks' seems to work as before, however, when switching to 'as cards' the behavior changes.
According to the wording 'View Mode - Choose how nested entries should be presented to authors', I would have expected that there is only a different UI, but in fact the behavior of drafts/publishing changes.
So starting with an entry with a couple of blocks of a typical content builder (heading, text, image etc):
So all of this seems unwanted for just another 'View Mode'. (Didn't try the 'element index' thing.) I would expect all modes to work the same way: Nested entries are not immediatly saved, but just 'applied' to their owner entry, and published alongside with the owner.
That said, I can think of other use cases for nested entries that might benefit from a different behavior: While 'Content builder' things are an integral part of their 'owner' and only make sense as a whole, there could also be information models that implement nested entities as part of a hierarchy, independent from each other and their owner.
For example categories contain articles, films contain screenings with date/time/location, tv shows contain episodes, cities contain locations etc.
In this cases it makes perfect sense that nested entries 'lead your own life' without effecting the owner entry (even adding/removing then would not create a provisional draft of the owner). That would also be the perfect use case for the 'entries index view mode' with all that extra UI.
Looking forward to some clarification, thanks.
Beta Was this translation helpful? Give feedback.
All reactions