Skip to content

Commit

Permalink
Merge pull request #132 from canopas/feat-add-is-resource-flag-in-posts
Browse files Browse the repository at this point in the history
Feat: Add is_resource flag in posts
  • Loading branch information
cp-sumi-k authored Jan 24, 2024
2 parents aa11941 + 05c43c2 commit a6d9470
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion admin/src/api/cta/content-types/cta/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": ["images"]
"allowedTypes": [
"images"
]
},
"posts": {
"type": "relation",
Expand Down
9 changes: 8 additions & 1 deletion admin/src/api/post/content-types/post/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": ["images"]
"allowedTypes": [
"images"
]
},
"summary": {
"type": "text",
Expand Down Expand Up @@ -99,6 +101,11 @@
"new_blog_content": {
"type": "customField",
"customField": "plugin::blog-editor.editor"
},
"is_resource": {
"type": "boolean",
"default": true,
"required": true
}
}
}

0 comments on commit a6d9470

Please sign in to comment.