I'm new user of strapi. While reading docs I got confused between content type and component.What is the difference between these two?
A Content Type is a data structure that is used as a collection of specific content.
Could be Articles, Restaurants, Products, etc...
A Component is a data structure (also) that could be used and re-used in many different Content Type.
Example if you have Article and Product Content Types in your app, and you want to manage SEO tags for both of these Content Types you will create a SEO Component and use it in your Article AND Product Content Type
You will not have to create the same SEO data structure in both Content Types.
Alternatively you can say that a Content Type is a model and a Component is a custom / composite field of one or more models.
Examples for content types could be:
Examples for components could be:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With