[5.x] FR: Entry type re-labelling #14779
-
Similarly to how custom fields can be re-labelled in field layouts, it'd be great if it was possible to relabel entry type names and handles in (or via) the entry types selector for sections, Matrix and CKEditor fields. In Craft 5, entry type handles and names are required to be unique, which mean that similar entry types will have to be given more specific – and not necessarily client-/author-friendly – names, e.g. "Text with all options", "Images (limited to 5)" etc. Also, in lieu of any organisational features for entry types, I think a lot of developers will opt to give entry types contextual names like "News Block", "Image Partial" or "Blog Page Entry", in order to achieve some kind of organisation for them inside the control panel. IMO, none of these are excellent names to present to authors in the UI, and it would be great if it was possible to relabel them to simply "News", "Image" and "Blog Page", for the different context(s) where they are used. In terms of UI, potentially a relabel feature could be implemented by turning the entry type selector component into something a little bit more like a mini field layout designer? This could provide the prerequisite UI for implementing additional per-context entry type features like per-field entry type groups, or even conditional entry types. Related: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
This thought crossed my mind when reading #14774. I could see us adding them when we get around to adding conditions to entry types, as you mentioned. In the meantime, you can technically pull of multiple entry types with the same name using static translations (see #14774 (comment)). |
Beta Was this translation helpful? Give feedback.
-
@brandonkelly Not sure if that belongs here or in another discussion: have you thought about adding the handle to the entry type select? When you have a "matrix block" for content modelling that should display the latest 3 news of a news section together with some kind of News Index entry type you'll end up with 3 entry types that are all named "News" (or something like that). We can add our custom naming convention for handles and see the purpose of the type via handle name |
Beta Was this translation helpful? Give feedback.
-
Added support for overriding entry type names & handles for Craft 5.6 🎉 (#16453) |
Beta Was this translation helpful? Give feedback.
Added support for overriding entry type names & handles for Craft 5.6 🎉 (#16453)