Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schemaorg Plugin Trait #5

Open
3 of 7 tasks
shazmasiddiqui opened this issue Aug 10, 2022 · 0 comments
Open
3 of 7 tasks

Schemaorg Plugin Trait #5

shazmasiddiqui opened this issue Aug 10, 2022 · 0 comments

Comments

@shazmasiddiqui
Copy link
Collaborator

shazmasiddiqui commented Aug 10, 2022

Create a trait to generalise functions to add, create and save schema

  • addSchemaType(Form, type, value): Adds passed type as an option in existing Schema Type list form field along with the passed value
  • saveSchema(Form): Saves unfiltered form data in JSON format in schemaForm field
  • generateSchema(Form): Removes empty fields, formats time duration in ISO 8601 format and returns filtered schema
  • storeSchema(JSON object of Schema): Stores passed schema in database in schema field
  • fetchSchema(itemId): Returns a JSON object of the filtered schema associated with the itemId that is passed as a parameter
  • pushSchema(JSON object of Schema): Adds filtered schema to the head tag of the html using WebAssetManager
  • updateSchemaForm(Data): Updates schema form in Article Edit view if the data already exists in database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant