summaryrefslogtreecommitdiff
path: root/server/src/register.ts
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-02-05 14:53:17 +0300
committerValentin Popov <valentin@popov.link>2026-02-05 14:53:17 +0300
commit7fe5502dc173cfee7c3b3178fb233264ad7c6dc3 (patch)
treee8d82ba993ae0a044c3ce322114851aa9683b51c /server/src/register.ts
parentefa89313fa4152252b477aafd88f7cf4a66747d8 (diff)
downloadstrapi-plugin-checkbox-list-7fe5502dc173cfee7c3b3178fb233264ad7c6dc3.tar.xz
strapi-plugin-checkbox-list-7fe5502dc173cfee7c3b3178fb233264ad7c6dc3.zip
Add checkbox-list custom field plugin to Strapi
- Introduced a new custom field type 'checkbox-list' with associated input component. - Updated package.json to reflect the new plugin name. - Added necessary server-side files for plugin registration, including bootstrap, destroy, and service methods. - Updated package-lock.json to include new dependencies and versions. - Enhanced admin interface with custom field registration and input handling.
Diffstat (limited to 'server/src/register.ts')
-rw-r--r--server/src/register.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/register.ts b/server/src/register.ts
index 482402d..0d0bbd9 100644
--- a/server/src/register.ts
+++ b/server/src/register.ts
@@ -2,6 +2,11 @@ import type { Core } from '@strapi/strapi';
const register = ({ strapi }: { strapi: Core.Strapi }) => {
// register phase
+ strapi.customFields.register({
+ name: 'checkbox-list',
+ plugin: 'checkbox-list',
+ type: 'json',
+ });
};
export default register;