Replies: 5 comments 11 replies
-
That’s not currently planned, but maybe worth considering. |
Beta Was this translation helpful? Give feedback.
-
I just got done with my first full content model and build out using Craft 5 and I've been thinking a lot about this new paradigm. I'm not totally sure where I've landed either, so these are more just musings. First, I think the new changes are incredible – sort of what I've always wanted Craft to be able to do. I think everything being Entries is a really good abstraction from an architectural standpoint, but I've stumbled over the control panel terminology more than once in my mental model. I think that might be what's happening in this thread as well. If (inside of a ckeditor) I'm creating an "Entry", then ... where is that entry? My past experience with entries tells me it's somewhere I should be able to locate and reuse. But that's just because the word entry appears in the "Create a new entry" dropdown. If it said create a a new "block" I don't think I would make any of those same assumptions. (or maybe I get to choose what it says as part of the ckeditor configuration). Honestly it might be better for it to not say anything, but be a sort of Icon that implies adding a modular piece of content. I had to back out and tell myself: I never used to be able to expect to "find" a matrix block (in the control panel, for example), and was totally comfortable with it completely living inside of the field in that one parent entry. Same with something like a vizy block. It makes sense logically now that I've played around for a while, but it took me a while to understand how/why an entry might appear in the "Entries" section of Craft and why it wouldn't. I think the situation where you have an entry type that is available in a section and also available in a matrix/ckeditor is a bit confusing. When I query that section those matrix/ckeditor powered blocks won't be included, but (I assume) if I query the entry type they would. That's just a new concept, not bad, just unexpected. Thinking out loud, I think the cost of removing some of the built-in structure and flattening everything into an entry (which I think is a good move, again) is some clarity in the Control Panel and I imagine as feedback continues to roll in, there might be some low-hanging UI changes that might fill in some of the gaps. I think some folders or a simple taxonomy for entry types (lightweight, just a control panel aid in the same way field groups used to be somewhat disposable) would be great. After content modeling for just a couple days I immediately began prefixing entry types with "[Block]" – now I've seen a few conversations/screenshots of others doing a similar thing. Perhaps it's just the learning curve, but I imagine that entry types list is going to be dramatically longer in Craft 5 (if I converted the last Craft 4 site I made into this scheme there would be at least 80 entry types, probably more). It's somewhat disorienting to see "Two Column Text" (something sort of modular like a block), next to "Homepage" in the list. Again, I get that architecturally making them one thing is the best move, I'm just trying to picture some Control Panel UI that might help. |
Beta Was this translation helpful? Give feedback.
-
Yes, agreed! I think being able to customize some of that language in the CP is absolutely the best path forward. My comment about the word block has more to do with my own context (using Craft for a decade or whatever) and less to do with the ideal future state you are pointing to. Any plans to make that same "New Ingredient" magic happen for the ckeditor nested entries UI? |
Beta Was this translation helpful? Give feedback.
-
+1 on this! Our use case is for content that both lives within a specific article and outside of it, and we're looking to migrate our existing Matrix/SuperTable setup to CK Editor, but right now this is giving us pause. Specifically, we have travel articles that often contain asides or callouts to other pieces of content, for example a restaurant or tourist location. These callouts are placed between relevant paragraphs of text – so if a person is writing about a meal they had, we'd often call out with a restaurant card – but editorial may want to move them to a different location within the article. They're also likely to be created new for a given article (it's not often that we'd review a location more than once). In both instances, CK Editor gives our authors much better flexibility. However, sometimes an author will create locations or other callouts whilst they're in situ. This allows us to have a stream of regular content. When they write up the article, they'd still want to insert that callout, so being able to embed existing content would be great. It frees up different authors to work in different ways. |
Beta Was this translation helpful? Give feedback.
-
Just to add: after some experimentation, it appears you can take the copy/paste hack from @Mosnar one step further if you have the Source button enabled. However, there's a major caveat (see below). You can copy/paste an existing embedded piece of content, and then alter the
Within the editor this appears to work. It initially throws an error, but once you save the entry and refresh, it starts displaying the card as it would elsewhere. However I don't see content embedded with this technique returned in GraphQL queries. I'm still trying to understand how GQL is meant to work with nested content in CK Editor fields (as it doesn't seem to do what I'd expect), but it appears to always be absent. I'm not sure, though, whether it would render correctly with a partial, as the paragraph element and content title are returned in the same way as regularly embedded entries, so it could be worth a shot for someone with a Craft-powered front end 😉 |
Beta Was this translation helpful? Give feedback.
-
Description
More of a questions than a bug: will we be able to select an existing entry to embed?
I was able to hack-around not being able to select existing entries to some degree by copy and pasting the embedded entry I created (which seems to work very well, by the way!)
Video demo:
CleanShot.2024-02-07.at.14.18.28.mp4
Beta Was this translation helpful? Give feedback.
All reactions