Lookup table
This commit is contained in:
parent
832994d13e
commit
693aa352a4
13 changed files with 1138 additions and 335 deletions
|
@ -10,46 +10,26 @@
|
|||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"description": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"slug": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"type": "uid",
|
||||
"targetField": "title",
|
||||
"required": true
|
||||
},
|
||||
"content": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"type": "blocks"
|
||||
},
|
||||
"image": {
|
||||
|
@ -62,11 +42,7 @@
|
|||
"videos",
|
||||
"audios"
|
||||
],
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": false
|
||||
}
|
||||
}
|
||||
"pluginOptions": {}
|
||||
},
|
||||
"attachment": {
|
||||
"type": "media",
|
||||
|
@ -77,18 +53,10 @@
|
|||
"files",
|
||||
"videos"
|
||||
],
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": false
|
||||
}
|
||||
}
|
||||
"pluginOptions": {}
|
||||
},
|
||||
"date": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"type": "date",
|
||||
"required": true
|
||||
}
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "collection_lookups",
|
||||
"info": {
|
||||
"singularName": "collection-lookup",
|
||||
"pluralName": "collection-lookups",
|
||||
"displayName": "Sammlungs Referenz",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"reference": {
|
||||
"type": "uid",
|
||||
"required": true
|
||||
},
|
||||
"collection": {
|
||||
"type": "uid",
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* collection-lookup controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::collection-lookup.collection-lookup');
|
7
src/api/collection-lookup/routes/collection-lookup.ts
Normal file
7
src/api/collection-lookup/routes/collection-lookup.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* collection-lookup router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::collection-lookup.collection-lookup');
|
7
src/api/collection-lookup/services/collection-lookup.ts
Normal file
7
src/api/collection-lookup/services/collection-lookup.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* collection-lookup service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::collection-lookup.collection-lookup');
|
|
@ -10,46 +10,26 @@
|
|||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"description": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"slug": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"type": "uid",
|
||||
"targetField": "title",
|
||||
"required": true
|
||||
},
|
||||
"date": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"type": "datetime",
|
||||
"required": true
|
||||
}
|
||||
|
|
|
@ -10,31 +10,19 @@
|
|||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"navbar": {
|
||||
"type": "component",
|
||||
"repeatable": false,
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"component": "global.navbar",
|
||||
"required": true
|
||||
},
|
||||
"footer": {
|
||||
"type": "component",
|
||||
"repeatable": false,
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"component": "global.footer"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,36 +10,20 @@
|
|||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"description": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"slug": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"type": "uid",
|
||||
"targetField": "title",
|
||||
"required": true
|
||||
|
@ -53,18 +37,10 @@
|
|||
"files",
|
||||
"videos"
|
||||
],
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": false
|
||||
}
|
||||
}
|
||||
"pluginOptions": {}
|
||||
},
|
||||
"date": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"type": "datetime",
|
||||
"required": true
|
||||
}
|
||||
|
|
|
@ -10,28 +10,16 @@
|
|||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"identifier": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"unique": true
|
||||
},
|
||||
"slug": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"type": "uid",
|
||||
"targetField": "identifier",
|
||||
"required": true
|
||||
|
@ -39,20 +27,12 @@
|
|||
"hero": {
|
||||
"type": "component",
|
||||
"repeatable": false,
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"component": "shared.hero",
|
||||
"required": false
|
||||
},
|
||||
"content": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"type": "dynamiczone",
|
||||
"components": [
|
||||
"dynamic-zone.gallery",
|
||||
|
|
|
@ -7,19 +7,15 @@
|
|||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"list": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"articles",
|
||||
"events",
|
||||
"operations"
|
||||
],
|
||||
"required": true
|
||||
},
|
||||
"enable_detail": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"required": true
|
||||
},
|
||||
"sammlungs_referenz": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::collection-lookup.collection-lookup"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue