Import content type from one site to another

Dear colleagues,

I have a query regarding the copy of one content type from one website to another.

I saw that Valérie asked the same [question](https://drupal-community.web.cern.ch/t/how-to-export-a-content-type-from-a-drupal-website-and-import-it-in-another/599) some type ago but I have a different problem.

Basically, I inherited a website that does not have a “news” content type. I tried to reproduce it but it is time consuming and not rewarding: The version I came up with has double title for instance.

I tried to import the “news” content type from a “clean” test website to my website but it displays the following message? What should I do?

Many thanks,
Best regards,
Antoine

Dear Antoine

In my point of view, the import of configurations through the user interface is incomplete, if you export/import only the “content-type” configuration the elements inside of the content-type such as fields, teaser, displays, forms configurations are not available in the new site.
Our recipes in general terms
We export all configurations,
extract the yml files related to the content type.
create a new module and add the selected yml files in the configuration folder,
finally, install the module in the new site and enjoy the full “content-type”.
Source
https://www.drupal.org/docs/drupal-apis/entity-api/creating-a-custom-content-type-in-drupal-8

best regards
Guillermo