convert about types from component to collection-type

This commit is contained in:
Schneider Roland
2025-01-19 21:57:33 +01:00
parent 741dd19588
commit c706a4c7d2
80 changed files with 2428 additions and 630 deletions

View File

@@ -0,0 +1,74 @@
{
"kind": "collectionType",
"collectionName": "yoga_single_services",
"info": {
"singularName": "yoga-single-service",
"pluralName": "yoga-single-services",
"displayName": "YogaSingleService"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"header": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"description": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "text"
},
"buttonLink": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"image": {
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false,
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"imageAlt": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"name": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* yoga-single-service controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::yoga-single-service.yoga-single-service');

View File

@@ -0,0 +1,7 @@
/**
* yoga-single-service router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::yoga-single-service.yoga-single-service');

View File

@@ -0,0 +1,7 @@
/**
* yoga-single-service service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::yoga-single-service.yoga-single-service');