-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add FAQ * Add categories
- Loading branch information
Showing
12 changed files
with
5,726 additions
and
1,942 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/api/faq-category/content-types/faq-category/schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"kind": "collectionType", | ||
"collectionName": "faq_categories", | ||
"info": { | ||
"singularName": "faq-category", | ||
"pluralName": "faq-categories", | ||
"displayName": "FAQ Category" | ||
}, | ||
"options": { | ||
"draftAndPublish": true | ||
}, | ||
"pluginOptions": {}, | ||
"attributes": { | ||
"name": { | ||
"type": "string", | ||
"required": true, | ||
"unique": true | ||
}, | ||
"description": { | ||
"type": "text", | ||
"required": true | ||
}, | ||
"image": { | ||
"allowedTypes": [ | ||
"images", | ||
"files", | ||
"videos", | ||
"audios" | ||
], | ||
"type": "media", | ||
"multiple": false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* faq-category controller | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi' | ||
|
||
export default factories.createCoreController('api::faq-category.faq-category'); |
Oops, something went wrong.