A Strapi plugin to find out the collections where a selected component is populated with data.
via npm:
npm i strapi-plugin-components-usage-info
via yarn:
yarn add strapi-plugin-components-usage-info
Within your Strapi v5 project's config/plugin.js, enable the plugin:
module.exports = {
// ...
"strapi-plugin-components-usage-info" : {
enabled: true
},
// ...
}
When trying to identify if a certain component is populated with any data anywhere within that setup, this plugin can be used to quickly find this information. This can be useful for analysis before:
- Modifying the fields of an existing component.
- Deleting a component from the setup.
Once installed and enabled, the plugin displays a list of all the components in the setup. On selecting a certain component, it lists the collections and records that contain data for the selected component.
When identifying if a component is populated within a certain record:
- If the selected component is directly not part of a collection, but instead part of another component that belongs to the collection, such relationships (upto any depth level) are taken into consideration.
- Locales are also taken into consideration and displayed.
- Only published records are considered. Draft versions or older versions of the records are not considered.
- This plugin works with Strapi v5.0.0 onwards. It does not support earlier Strapi versions.
For any bugs, please create an issue here.
- This plugin is created by Punit Sethi.
- I'm an independent developer working on Strapi migrations, customizations, configuration projects (see here).
- For any Strapi implementation requirement, please write to me at
punit@tezify.com.
