Create a content type from a plugin

I am writing a plugin which will use some custom content types. They need to be automatically created when the plugin is installed so the use does not need to manually go through the content type builder.

Looking at the plugin development documentation I see how to define content types, but they don’t automatically become available in the content manager.

Can someone provide at least a hint where to look for docs that can help?

I was having the same issue. The documentation is not updated (as far as I know).

What I did, was to check how the MediaBucket plugin works and reproduce it and it worked. I created the Content Types in the plugin, and when the plugin is installed, the content types are automatically created and also the db is updated.

1 Like

Thanks a lot for your response! I’ll have a look at the MediaBucket plugin then.

1 Like