Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello 👋
According to this documentation, Ghost automatically handles the
Article
schema for each post, which is great. However, it is not possible to customize it to use something different fromArticle
.The use case here is to have the NewsArticle schema. Here is what I suggest in that PR:
NewsArticle
schema instead of the defaultarticle
.schema.js
to create a dedicatedNewsArticle
schema for that post.I tried to make things work correctly, but I am not able to save the update. When I change the dropdown value and click on
Update
, I receive a success message (PUT 200) about the post being updated, but it still uses the previous value. What did I miss here?Thanks in advance for your support.
Note: The dropdown was a good choice for me since it can easily be extended to other schemas, like
Recipe
for cooking blogs.yarn test:all
andyarn lint
)🤖 Generated by Copilot at c9e50a7
This pull request adds a new feature to Ghost that allows users to select a schema type for their posts, either 'article' or 'newsArticle'. The schema type is a metadata attribute that affects how the posts are displayed and indexed by search engines and social media platforms. The pull request modifies the post model, validator, service, exporter, and schema helper to support the new attribute, and adds a new component and a migration to handle the user interface and the database changes. The pull request also updates the tests and the mock server to reflect the new feature.