Pennebaker / craftcms-thearchitect

CraftCMS plugin to generate content models from JSON data.
MIT License
171 stars 9 forks source link

TA always creates Entry Types based on Section name #49

Open ldstevens opened 7 years ago

ldstevens commented 7 years ago

I've noticed a small bug where TA will always create an entry type based on the section name, even when one doesn't exist, e.g.:

Original data: Section: Posts Entry Type: Post

After TA import: Section: Posts Entry Type: Posts Entry Type: Post

The new empty one will be the default one, which can make things a bit confusing.

Cheers :)

spAnser commented 7 years ago

This is because that is default craft behavior to create an entry type that matches the section. I guess the bug would be that TA doesn't detect and delete the default and generate a new one, or doesn't assume you want to rename the default one that craft creates.