Skip to content

[5.x]: Entry Type Names have to be unique #14774

@sandrodunkel

Description

@sandrodunkel

What happened?

Description

Why can't two Entry Types have the same name? It's very likely to have for example two Entry Types called Text, that need to be very different for their respective use in different matrixes. I expect the handle to be a unique identifier and the entry type to be "visual" only, therefore allowing there to be several Entry Types with the same name.

Steps to reproduce

  1. Create Entry Type called Text to use in Matrix ABC.
  2. Create another Entry Type called Text that has a very different field layout to use in Matrix XYZ.

Expected behavior

The two Entry Types can co-exist, even though they have the same name. The handle serves as a unique identifier.

Actual behavior

Entry Type cannot be saved due to an error:

Name "Text" has already been taken.

Craft CMS version

5.0.0

PHP version

8.2.15

Operating system and version

MacOS Sonoma 14.1.1

Database type and version

MySQL 8.0.33

Image driver and version

Imagick 3.7.0 (ImageMagick 6.9.11-60)

Installed plugins and versions

  • Batch Actions (2.0.0)
  • CKEditor (4.0.2)
  • Control Panel CSS (3.0.0)
  • SEOmatic (5.0.0-beta.8)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions