Add loading of components definitions inside Strapi plugin - pull request

claudiakwj

Klaudia Jaszczak

Posted on March 28, 2022

Add loading of components definitions inside Strapi plugin - pull request

Hi 👋,
for people interested in creating their own plugins for @strapijs - I created the Pull Request on GitHub. 🎇
The PR is about allowing plugin creator to declare his own custom content type components inside plugin. This will open new doors for plugin creators.

In short:

What does it do?
I have added loading of components definitions from Strapi plugins. It allows loading components from plugin/server/components folder.
It allows components to be overwritten by local components, when editing in content-type manager.
It will prefix components categories defined inside the plugin with either plugin name or componentsPrefix (if defined in plugin package.json).

How to test it?
I have modified the examples/getstarted to make use of the components defined in plugin as well as added a content-type that makes full use of newly defined components.

I and @jaszczw will be actively supporting the PR. 🤞
We need the PR merged to complete one of our projects. 💡

Find out more here: https://github.com/strapi/strapi/pull/12965

💖 💪 🙅 🚩
claudiakwj
Klaudia Jaszczak

Posted on March 28, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related